This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: extern "C" typedefs


>>>>> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]