This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11308] New: ICE when calling a function on an enum type
- From: "rschiele at uni-mannheim dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Jun 2003 14:53:19 -0000
- Subject: [Bug c++/11308] New: ICE when calling a function on an enum type
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11308
Summary: ICE when calling a function on an enum type
Product: gcc
Version: 3.3.1
Status: UNCONFIRMED
Severity: minor
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rschiele at uni-mannheim dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i486-suse-linux
GCC host triplet: i486-suse-linux
GCC target triplet: i486-suse-linux
gcc 3.3.x ICEs on the following invalid code:
enum a { };
void b() {
a::c();
}
# g++ -c test.cc
test.cc: In function `void b()':
test.cc:3: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
gcc 3.4 handles the case correctly.