This is the mail archive of the gcc-help@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]
Other format: [Raw text]

Re: Forward referencing with typedef


On 10 December 2011 04:15, Divyesh wrote:
>
> But it is interesting to see that g++ does compile this sample of code
>
> So I am confused now as there are inconsistencies between gcc and g++

It's not inconsistent. G++ treats the file as C++ code by default, and
your program is valid in C++, but not in C.


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