This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

c++/6037: ICE in enum after switch() (gcc 3.0.4)



>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]