This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
c++/9528: [3.4 regression] ICE with illegal using-declaration
- From: reichelt at igpm dot rwth-aachen dot de
- To: gcc-gnats at gcc dot gnu dot org
- Cc: numerical dot simulation at web dot de
- Date: 31 Jan 2003 18:04:04 -0000
- Subject: c++/9528: [3.4 regression] ICE with illegal using-declaration
- Reply-to: reichelt at igpm dot rwth-aachen dot de
>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: