Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » CDT indexer not support MS-style anonymous struct ?
CDT indexer not support MS-style anonymous struct ? [message #1046176] Sun, 21 April 2013 13:47 Go to next message
canky kong is currently offline canky kongFriend
Messages: 1
Registered: April 2013
Junior Member
the code is:
struct A {
	int a;
};
struct B {
	struct A;
	int b;
};
int main(){
	struct B b_struct;
	printf("%d",b_struct.a);
// i m using gcc 4.5 ,show if i added the flag -fms-extensions,it can compile and run 
// but  the CDT indexer show error : Field 'a' could not be resolved
// is there any way to support it ?
}
Re: CDT indexer not support MS-style anonymous struct ? [message #1050562 is a reply to message #1046176] Sat, 27 April 2013 11:20 Go to previous message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
Registered: July 2009
Senior Member
You should file a bugzilla request https://bugs.eclipse.org

This feature was added to the C11-Standard, see http://stackoverflow.com/questions/14105982/is-it-a-bad-idea-to-use-gccs-fms-extensions


Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Previous Topic:Link .lib file to MinGW C++ Linker in eclipse
Next Topic:C/C++ Eclipse
Goto Forum:
  


Current Time: Wed Oct 09 04:48:41 GMT 2024

Powered by FUDForum. Page generated in 0.04005 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top