c++/6037: ICE in enum after switch() (gcc 3.0.4)
porten@trolltech.com
porten@trolltech.com
Fri Mar 22 04:16:00 GMT 2002
>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:
More information about the Gcc-prs
mailing list