When I try to compile, I get this error: "g++ -Wall -c -o bug.o bug.cpp In file included from bug.cpp:1: bug.h: In member function `void c_usebug::submitbug()': bug.h:28: internal compiler error: in finish_class_member_access_expr, at cp/typeck.c:2159 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. Preprocessed source stored into /tmp/ccwRNw0y.out file, please attach this to your bugreport. make: *** [bug.o] Error 1" bug.cpp is as fellow: "class c_bug { public: enum e_dir { SE }; }; class c_usebug { private: c_bug *_bug; public: void submitbug() { _bug->e_dir::SE; }; };" Reproducible: Always Steps to Reproduce: 1. Get attachment tarball 2. Untar file 3. Type "make" OR 1. Get description of file in "Details" of bug. 2. Put this one in a "file.cpp" 3. Execute: "g++ file.cpp" Actual Results: g++ got an internal error. Expected Results: A pretty message like: "syntax is incorrect", and not exit promptly. Some spec of my computer: $ g++ --version g++ (GCC) 3.3.5 (Gentoo Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1) $ uname -a Linux poseidon 2.6.9-gentoo-r6 #1 Tue Nov 30 00:23:57 CET 2004 i686 AMD Athlon(tm) processor AuthenticAMD GNU/Linux $ emerge info Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r6 i686) ================================================================= System uname: 2.6.9-gentoo-r6 i686 AMD Athlon(tm) processor Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.92.0.2-r1 Headers: sys-kernel/linux-headers-2.4.21-r1 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer" CHOST="i386-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://mir.zyrianes.net/gentoo/ ftp://mir.zyrianes.net/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://194.149.10.102/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa apm avi berkdb bitmap-fonts cdr crypt encode f77 font-server foomaticdb fortran gdbm gif gpm gtk gtk2 imlib java jpeg libg++ libwww mad mikmod motif mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python quicktime readline sdl spell ssl svga tcpd tiff truetype truetype-fonts type1-fonts x86 xml2 xmms xv zlib"
Created attachment 48884 [details] Some pieces of code for BUG Untar, go in new directory, and exec "make".
Created attachment 48885 [details] Preprocessed source Debug developer should need this one for debugging gcc.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16904 Looks like it could be it. I'll see about backporting the patch if we want to fix this issue in 3.3.6.
Upgrade to gcc-3.4.