c++/9528: [3.4 regression] ICE with illegal using-declaration

reichelt@igpm.rwth-aachen.de reichelt@igpm.rwth-aachen.de
Fri Jan 31 18:48:00 GMT 2003


>Number:         9528
>Category:       c++
>Synopsis:       [3.4 regression] ICE with illegal using-declaration
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-illegal-code
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 31 18:06:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     reichelt@igpm.rwth-aachen.de
>Release:        gcc 3.4-20040127
>Organization:
>Environment:
i686-pc-linux-gnu
>Description:
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.
>How-To-Repeat:
g++ -c
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-bugs mailing list