Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 130307 - [3.4/ICE on invalid] gcc compiler error, likely a regression of 78579
Summary: [3.4/ICE on invalid] gcc compiler error, likely a regression of 78579
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard: 3.4.6-r2
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-17 15:44 UTC by Stu
Modified: 2006-04-26 15:57 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
preprocessed source (as called for by the bug output) (ccHL5VVD.out.bz2,105.79 KB, application/octet-stream)
2006-04-17 15:50 UTC, Stu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stu 2006-04-17 15:44:29 UTC
I got this when using gcc:

stu@stubox lSystemComposite$ make
g++  -I./ -I/home/stu/programming/evolve/utilityFiles -I/home/stu/programming/evolve/lSystem -I/home/stu/programming/evolve/utilityFiles/socketMethods -I/home/stu/programming/evolve/utilityFiles/commands -I/home/stu/programming/evolve/lSystemInterface -I/home/stu/programming/evolve/utilityFiles/logger -I/home/stu/programming/evolve/commonAspect -I/home/stu/programming/evolve/utilityFiles/timer -ggdb3 -Wall -O3  -c LSystemComposite.cc -o LSystemComposite.o
LSystemComposite.cc: In member function `bool LSystemComposite::initFromServer(std::string, int, bool)':
LSystemComposite.cc:40: internal compiler error: in finish_class_member_access_expr, at cp/typeck.c:1956
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
Preprocessed source stored into /tmp/ccHL5VVD.out file, please attach this to your bugreport.

Which appears to be a dup of this:  78579
Except the solution there appeared to be "upgrade to gcc-3.4" and my version of gcc is:
stu@stubox lSystemComposite$ g++ --version
g++ (GCC) 3.4.5 (Gentoo 3.4.5, ssp-3.4.5-1.0, pie-8.7.9)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

emerge --info:
stu@stubox lSystemComposite$ emerge --info

*** You are not in the portage group. You may experience cache problems
*** due to permissions preventing the creation of the on-disk cache.
*** Please add this user to the portage group if you wish to use portage.

Portage 2.0.54 (default-linux/x86/2005.0, gcc-3.4.5, glibc-2.3.5-r2, 2.6.15.6 i686)
=================================================================
System uname: 2.6.15.6 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.6.14
dev-lang/python:     2.2.3-r5, 2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.4.19, 2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=athlon-xp -funroll-loops -fprefetch-loop-arrays -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon-xp -funroll-loops -fprefetch-loop-arrays -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aalib acl alsa apache2 apm arts audiofile avi berkdb bidi bitmap-fonts bonobo bzip2 cdr crypt cups curl dri dvd eds emboss encode esd ethereal exif expat faad fam ffmpeg firebird flac foomaticdb fortran gdbm gif gimpprint glut gmp gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile idn imagemagick imlib ipv6 jabber java jpeg junit kde lcms libcaca libg++ libwww mad matroska mhash mikmod mng motif mozilla mp3 mpeg mysql ncurses nls ogg oggvorbis openal opengl oss pam pcre pdflib perl png postgres ppds python qt quicktime readline recode ruby samba sdl slang spell ssl svga tcltk tcpd tiff truetype truetype-fonts trutype type1-fonts udev unicode usb vorbis wxwindows xine xml xml2 xmms xv xvid yahoo zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY

I would report this over at gcc, except the bug told me to go here, and I'm scared of the gcc guys.
Comment 1 Stu 2006-04-17 15:50:38 UTC
Created attachment 84867 [details]
preprocessed source (as called for by the bug output)

Preprocessed source stored into /tmp/ccHL5VVD.out file, please attach this to your bugreport.
Comment 2 Stu 2006-04-17 15:51:11 UTC
Comment on attachment 84867 [details]
preprocessed source (as called for by the bug output)

Had to bzip, because the file was to big
Comment 3 Stu 2006-04-17 16:14:38 UTC
Changed the status to "minor" because it's caused by incorrect code like this:

this->Blah::SomeFunction<string>( blah, blah );

Where Blah is a namespace

This happened when I changed a class to a namespace, and was doing a search and replace in another class where the code had looked like this:

this->Blah.SomeFunction<String>( blah, blah );

(I did %s/Blah\./Blah::/cg)

Still, it does appear to be a regression of a previous bug (the gcc guys said it was fixed in 3.4.2, but I'm running 3.4.5)
Comment 4 Mark Loeser (RETIRED) gentoo-dev 2006-04-26 15:57:22 UTC
Added a patch to CVS for the 3.4.6 patchset which fixes this.  it'll be in the next patchset release.