Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 9528
Product:  
Component:  
Status: RESOLVED
Resolution: FIXED
Assigned To: Kriang Lerdsuwanakij <lerdsuwa@gcc.gnu.org>
Host:
Reported against  
Priority:  
Severity:  
Target Milestone:  
 
 
Target:
Reporter: Volker Reichelt <reichelt@igpm.rwth-aachen.de>
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 9528 depends on: Show dependency tree
Show dependency graph
Bug 9528 blocks:

Additional Comments:






View Bug Activity   |   Format For Printing   |   Clone This Bug


Description:   Last confirmed: Opened: 2003-01-31 18:06
The following code causes an ICE when compiled with the new parser:

---------------------snip here-------------------
template <typename T> struct A
{
    void foo() { using T::X; }
};
---------------------snip here-------------------

The error message is:

bug.cc: In member function `void A<T>::foo()':
bug.cc:3: internal compiler error: in validate_nonmember_using_decl, at 
   cp/decl2.c:4152
Please submit a full bug report, [etc.]

Since we get a sensible error message with the 3.2/3.3 branch,
this is a regression.

Release:
gcc 3.4-20040127

Environment:
i686-pc-linux-gnu

How-To-Repeat:
g++ -c

------- Comment #1 From Wolfgang Bangerth 2003-02-01 20:56 -------
State-Changed-From-To: open->analyzed
State-Changed-Why: Confirmed. Broke somewhere here (so probably with the new
    parser):
    
    regression/test> ../bin/gcc-2002-12-25/bin/c++ -c test.ii
    test.ii: In member function `void A<T>::foo()':
    test.ii:3: error: parse error before `;' token
    regression/test> ../bin/gcc-2003-01-05/bin/c++ -c test.ii
    test.ii: In member function `void A<T>::foo()':
    test.ii:3: internal compiler error: in validate_nonmember_using_decl, at
       cp/decl2.c:4292

------- Comment #2 From Kriang Lerdsuwanakij 2003-04-30 16:47 -------
Responsible-Changed-From-To: unassigned->lerdsuwa
Responsible-Changed-Why: Working on a fix.

------- Comment #3 From Kriang Lerdsuwanakij 2003-04-30 17:54 -------
State-Changed-From-To: analyzed->closed
State-Changed-Why: Fixed

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