[Bug c++/9278] Illegal use of typedef to "void"
joseph at codesourcery dot com
gcc-bugzilla@gcc.gnu.org
Sat Feb 3 15:14:00 GMT 2007
------- Comment #25 from joseph at codesourcery dot com 2007-02-03 15:13 -------
Subject: Re: Illegal use of typedef to "void"
On Sat, 3 Feb 2007, tbm at cyrius dot com wrote:
> Is the following supposed to fail given that Joseph said that it's valid C code
> (but not valid in C++) and the header contains extern "C":
extern "C" does not change the language rules, only linkage. The contents
must still be valid C++ and are interpreted according to C++ rules for
those cases where the same code is valid C and C++ but has different
semantics in the two languages.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9278
More information about the Gcc-bugs
mailing list