Re: GCC bug when using typeof

2008-10-21 Thread James Dennett
On Tue, Oct 21, 2008 at 9:32 AM, Joe Buck <[EMAIL PROTECTED]> wrote: > On Mon, Oct 20, 2008 at 07:21:49PM -0700, Andrew Pinski wrote: >> On Mon, Oct 20, 2008 at 7:19 PM, Peng Yu <[EMAIL PROTECTED]> wrote: >> > Could you please help explain what the difference between typeof and >> > decltype are? W

Re: GCC bug when using typeof

2008-10-21 Thread Joe Buck
On Mon, Oct 20, 2008 at 07:21:49PM -0700, Andrew Pinski wrote: > On Mon, Oct 20, 2008 at 7:19 PM, Peng Yu <[EMAIL PROTECTED]> wrote: > > Could you please help explain what the difference between typeof and > > decltype are? What are c++0x/g++0x modes? > > Well decltype is part of the C++0x standar

Re: GCC bug when using typeof

2008-10-20 Thread Peng Yu
On Mon, Oct 20, 2008 at 9:09 PM, Andrew Pinski <[EMAIL PROTECTED]> wrote: > On Mon, Oct 20, 2008 at 7:04 PM, Peng Yu <[EMAIL PROTECTED]> wrote: >> Hi, >> >> I tried to compile the following program, but I got the following >> error. Is it a bug of GCC? Has it been fixed in a newer version GCC? >> >

Re: GCC bug when using typeof

2008-10-20 Thread Andrew Pinski
On Mon, Oct 20, 2008 at 7:19 PM, Peng Yu <[EMAIL PROTECTED]> wrote: > Could you please help explain what the difference between typeof and > decltype are? What are c++0x/g++0x modes? Well decltype is part of the C++0x standard (http://gcc.gnu.org/projects/cxx0x.html, http://www.open-std.org/jtc1/s

Re: GCC bug when using typeof

2008-10-20 Thread Peng Yu
On Mon, Oct 20, 2008 at 9:09 PM, Andrew Pinski <[EMAIL PROTECTED]> wrote: > On Mon, Oct 20, 2008 at 7:04 PM, Peng Yu <[EMAIL PROTECTED]> wrote: >> Hi, >> >> I tried to compile the following program, but I got the following >> error. Is it a bug of GCC? Has it been fixed in a newer version GCC? >> >

Re: GCC bug when using typeof

2008-10-20 Thread Andrew Pinski
On Mon, Oct 20, 2008 at 7:04 PM, Peng Yu <[EMAIL PROTECTED]> wrote: > Hi, > > I tried to compile the following program, but I got the following > error. Is it a bug of GCC? Has it been fixed in a newer version GCC? > It is a bug in GCC but in later versions 4.3.0 and above, we get a sorry message: