This is GCC Bugzilla
This is GCC Bugzilla Version 2.20+
View Bug Activity | Format For Printing | Clone This Bug
Save the following as x.cxx: typedef int Int; int f( void ) { return ( int ( int ( Int ( 1 ) * 1 ) ) ); } Compile via g++ -c x.cxx -o x.o You will get something like x.cxx: In function `int f()': x.cxx:2: parse error before `*' The above appears to be the minimal stimulus for exhibiting this bug: Try almost any simplification and it will compile fine. I have replicated this failure on: g++-3.3 (GCC) 3.3.1 20030626 (Debian prerelease) x86 linux gcc-3.2 (GCC) 3.2.3 (Debian) x86 linux version 2.95.4 x86 linux version 2.95.3 solaris sparc -> ppc cross-compiler The given stimulus compiles ok on 2.9-cisco-98r solaris I don't know the revision history of this internal Cisco build. The above stimulus was boiled down from a much larger program. :) kudos for all the good work! -- Cynbe
I can confirm this on 3.3.1 (20030707) and 2.95.3 but on the mainline (20030804) and 2.91.66, this is fixed but I do not think this is fixable for 3.3.x as the mainline has a new C++ parser so I am closing as fixed.
*** Bug 12914 has been marked as a duplicate of this bug. ***
*** Bug 11849 has been marked as a duplicate of this bug. ***
*** Bug 12824 has been marked as a duplicate of this bug. ***
*** Bug 15021 has been marked as a duplicate of this bug. ***
*** Bug 14549 has been marked as a duplicate of this bug. ***
*** Bug 14385 has been marked as a duplicate of this bug. ***
*** Bug 16879 has been marked as a duplicate of this bug. ***
*** Bug 17061 has been marked as a duplicate of this bug. ***