This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
c++/6037: ICE in enum after switch() (gcc 3.0.4)
- From: porten at trolltech dot com
- To: gcc-gnats at gcc dot gnu dot org
- Date: 22 Mar 2002 12:15:16 -0000
- Subject: c++/6037: ICE in enum after switch() (gcc 3.0.4)
- Reply-to: porten at trolltech dot com
>Number: 6037
>Category: c++
>Synopsis: ICE in enum after switch() (gcc 3.0.4)
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-legal-code
>Submitter-Id: net
>Arrival-Date: Fri Mar 22 04:16:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Harri Porten
>Release: unknown-1.0
>Organization:
>Environment:
i686-pc-linux-gnu gcc 3.0.1 and 3.0.4
>Description:
Following code causes an Internal Error in the line of the
enum definition.
struct S { ~S() { } };
struct C {
void foo() {
switch (0) { default: ; }
S s;
enum E { };
}
};
>How-To-Repeat:
g++ -v bug.cpp
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: