Skip to main content



      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 09:47 Go to next message
Eclipse UserFriend
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 07:20 Go to previous message
Eclipse UserFriend
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
Previous Topic:Link .lib file to MinGW C++ Linker in eclipse
Next Topic:C/C++ Eclipse
Goto Forum:
  


Current Time: Sun Aug 31 14:21:55 EDT 2025

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

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

Back to the top