Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 11796
Product:  
Component:  
Status: RESOLVED
Resolution: FIXED
Assigned To: Not yet assigned to anyone <unassigned@gcc.gnu.org>
Host:
Reported against  
Priority:  
Severity:  
Target Milestone:  
 
 
Target:
Reporter: Jeff Prothero <cynbe@muq.org>
Add CC:
CC:
Remove selected CCs
Build:
URL:
Summary:
Keywords:
Known to work:
Known to fail:

Attachment Description Type Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 11796 depends on: Show dependency tree
Show dependency graph
Bug 11796 blocks:

Additional Comments:






View Bug Activity   |   Format For Printing   |   Clone This Bug


Description:   Last confirmed: Opened: 2003-08-04 21:00
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

------- Comment #1 From Andrew Pinski 2003-08-04 21:06 -------
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.

------- Comment #2 From Andrew Pinski 2004-04-21 01:27 -------
*** Bug 12914 has been marked as a duplicate of this bug. ***

------- Comment #3 From Andrew Pinski 2004-04-21 01:29 -------
*** Bug 11849 has been marked as a duplicate of this bug. ***

------- Comment #4 From Andrew Pinski 2004-04-21 01:31 -------
*** Bug 12824 has been marked as a duplicate of this bug. ***

------- Comment #5 From Andrew Pinski 2004-04-21 01:35 -------
*** Bug 15021 has been marked as a duplicate of this bug. ***

------- Comment #6 From Andrew Pinski 2004-04-21 01:38 -------
*** Bug 14549 has been marked as a duplicate of this bug. ***

------- Comment #7 From Andrew Pinski 2004-04-21 01:40 -------
*** Bug 14385 has been marked as a duplicate of this bug. ***

------- Comment #8 From Andrew Pinski 2004-08-04 18:36 -------
*** Bug 16879 has been marked as a duplicate of this bug. ***

------- Comment #9 From Andrew Pinski 2004-08-17 09:52 -------
*** Bug 17061 has been marked as a duplicate of this bug. ***

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug