extern "C" typedefs

Jason Merrill jason@cygnus.com
Thu Oct 22 03:28:00 GMT 1998


>>>>> Josh MacDonald <jmacd@paris.CS.Berkeley.EDU> writes:

 > This code compiles with every C compiler I've ever used, and 
 > also compiles with g++ 2.7.2.  I am running:

 > I may be falling behind in the seemingly perpetual evolution of C++, 
 > but since this is in an extern "C" scope, it seems that it should
 > accept it.

Nope; extern "C" doesn't change the language rules, just linkage.  In any
case, forward-declaring an enum is invalid in C as well.

Jason



More information about the Gcc-bugs mailing list