This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/7667: ICE SIGSEGV on simple identifier error
- From: dv at vollmann dot ch
- To: gcc-gnats at gcc dot gnu dot org
- Date: Tue, 20 Aug 2002 22:54:21 +0200
- Subject: c++/7667: ICE SIGSEGV on simple identifier error
>Number: 7667
>Category: c++
>Synopsis: ICE SIGSEGV on simple identifier error
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: unassigned
>State: open
>Class: ice-on-illegal-code
>Submitter-Id: net
>Arrival-Date: Tue Aug 20 14:06:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Detlef Vollmann
>Release: 3.3 20020816 (experimental)
>Organization:
vollmann engineering gmbh
>Environment:
System: Linux octo 2.4.18-xfs-1.1 #1 Mon Jul 1 05:12:32 MEST 2002 i686 unknown
Architecture: i686
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: /dwarf/pdsrc/gcc/cvs/gcc/configure --program-suffix=-3 --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-version-specific-runtime-libs --enable-languages=c,c++
>Description:
Segmentation fault on simple identifier typo of a struct member
(wrapped as ICE)
>How-To-Repeat:
g++ -c bug.cpp
>Fix:
bug.cpp:
struct shmid_ds
{
unsigned int shm_segsz;
};
namespace samples
{
struct SysVIPC
{
class SharedMem
{
public:
SharedMem();
private:
unsigned int size;
struct shmid_ds info;
};
};
}
namespace samples
{
SysVIPC::SharedMem::SharedMem()
{
size = info.shmsegsz;
}
}
>Release-Note:
>Audit-Trail:
>Unformatted: