This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14086] New: internal compiler error: Segmentation fault (enum name equals classname)
- From: "hans dot buchmann at fhso dot ch" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Feb 2004 16:11:48 -0000
- Subject: [Bug c++/14086] New: internal compiler error: Segmentation fault (enum name equals classname)
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
compiling the code
-----------------------------------
# 1 "<built-in>"
# 1 "<command line>"
# 1 "bug.cc"
struct ClassA
{
ClassA();
};
struct ClassB
{
enum Enum {ClassB};
ClassA key;
ClassB();
virtual ~ClassB();
};
ClassB::ClassB()
{
}
with:
-----------------------------------
/home/buchmann/cvs/eo3s/htc/bin/g++ \
-c -o util/lang/http-parser-bug.o \
bug.cc
produces the output:
-----------------------------------
bug.cc:12: error: expected class-name before '(' token
bug.cc:7: error: duplicate field `struct ClassB' (as enum and non-enum)
bug.cc: In constructor `ClassB::ClassB()':
bug.cc:17: 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.
compiler version g++ -v:
-----------------------------------
Reading specs from
/home/buchmann/cvs/host/gcc-3.4/bin/../lib/gcc/i686-pc-linux-gnu/3.4.0/specs
Configured with: /home/buchmann/cvs/dist/gcc-3.4-20040114/configure -v
--prefix=/home/buchmann/cvs/host/gcc-3.4/ --enable-languages=c,c++ --with-newlib
Thread model: posix
gcc version 3.4.0 20040114 (experimental)
Best regards
Hans Buchmann
--
Summary: internal compiler error: Segmentation fault (enum name
equals classname)
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: hans dot buchmann at fhso dot ch
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14086