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 09:47 Go to next message
canky kong is currently offline canky kong
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 07:20 Go to previous message
Axel Mueller is currently offline Axel Mueller
Messages: 1949
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: Sat Aug 02 02:45:07 EDT 2014

Powered by FUDForum. Page generated in 0.01440 seconds