Re: Forward referencing with typedef

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux