Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 111205 - ICE in gcc-3.4 when making a syntax error
Summary: ICE in gcc-3.4 when making a syntax error
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: High trivial (vote)
Assignee: Gentoo Toolchain Maintainers
URL: http://gcc.gnu.org/bugzilla/show_bug....
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-01 19:03 UTC by Christopher Eineke
Modified: 2005-12-15 00:18 UTC (History)
0 users

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


Attachments
Source file that crashes g++ (killme.cpp,41 bytes, text/plain)
2005-11-01 19:04 UTC, Christopher Eineke
Details
Preprocessed source (cc3irPdP.out,274 bytes, application/octet-stream)
2005-11-01 19:05 UTC, Christopher Eineke
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Eineke 2005-11-01 19:03:46 UTC
gcc-3.4.4 craps out with the following messages:

------>8-SNIP!----------------------------------------------
cc1plus: error: expected primary-expression before '=' token
cc1plus: error: expected primary-expression before '=' token

Internal compiler error: Error reporting routines re-entered.
Please submit a full bug report,
with preprocessed source if appropriate.
------>8-SNIP!----------------------------------------------

when compiling the following piece of code containing a deliberate syntax error:
------>8-SNIP!----------------------------------------------
class KillMe {
    KillMe(int foo =, 1);
};
------>8-SNIP!----------------------------------------------



Reproducible: Always
Steps to Reproduce:
1. Download the provided source file
2. Compile the source file using g++
3. Watch g++ spill his guts




Portage 2.0.53_rc7 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r3,
2.6.14-gentoo x86_64)
=================================================================
System uname: 2.6.14-gentoo x86_64 Mobile AMD Athlon(tm) 64 Processor 3400+
Gentoo Base System version 1.12.0_pre9
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.13
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.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -mtune=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon64 -mtune=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://adelie.polymtl.ca/
http://gentoo.netnitco.net ftp://gentoo.chem.wisc.edu/gentoo/
http://gentoo.mirrors.pair.com/ http://gentoo.mirrors.tds.net/gentoo
ftp://gentoo.mirrors.pair.com/ http://mirror.ovh.net/gentoo-distfiles/
http://cudlug.cudenver.edu/gentoo/ http://gentoo.arcticnetwork.ca/
http://gentoo.mirrored.ca/ http://mirrors.acm.cs.rpi.edu/gentoo/
http://open-systems.ufl.edu/mirrors/gentoo http://prometheus.cs.wmich.edu/gentoo
http://gentoo.seren.com/gentoo http://gentoo.chem.wisc.edu/gentoo/
http://mirror.espri.arizona.edu/gentoo/ http://mirror.datapipe.net/gentoo
http://distro.ibiblio.org/pub/linux/distributions/gentoo/
http://gentoo.llarian.net/"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage"
USE="amd64 3dnowex X a52 aac acpi alsa audiofile avi bash-completion
bitmap-fonts bonobo browserplugin bzip2 caps ccs cdparanoia cdr clearcase crypt
cscope css cups curl divx4linux dpms dts dv dvd dvdr dvdread eds effects emboss
encode fam ffmpeg flac font-server foomaticdb gcj gd gif gimpprint gphoto2 gpm
gtk gtk2 gtkhtml guile hal ieee1394 imagemagick imlib imlib2 inkjar jack java
jpeg jpeg2k junit kde ldap libg++ libsamplerate libwww lm_sensors logitech-mouse
lzw lzw-tiff mad mikmod mng motif mozilla mozsvg mp3 mpeg mplayer musicbrainz
ncurses network nls nomotif nptl nptlonly objc odbc ogg oggvorbis openexr
openexrt opengl pam pcmcia pda pdflib perforce perl pg-hier pg-intdatetime php
pic png postgres povray ppds python qt quicktime readline real rtc ruby samba
scanner sdl sndfile spell sql ssl subversion svg tcpd tga theora threads tiff
truetype-fonts type1-fonts udev unicode usb userlocales vorbis wifi wmf wxgtk1
xine xinerama xml xml2 xmms xpm xv xvid yv12 zeroconf zlib userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Christopher Eineke 2005-11-01 19:04:27 UTC
Created attachment 71906 [details]
Source file that crashes g++
Comment 2 Christopher Eineke 2005-11-01 19:05:15 UTC
Created attachment 71907 [details]
Preprocessed source
Comment 3 Christopher Eineke 2005-11-04 19:17:31 UTC
So... Is anyone looking into this? I know it's just some minor bug, but I would
really like to know what went wrong.
Comment 4 SpanKY gentoo-dev 2005-11-04 19:26:50 UTC
(In reply to comment #3)
> So... Is anyone looking into this?

probably not
Comment 5 SpanKY gentoo-dev 2005-11-04 19:34:05 UTC
gcc-3.3 appears to be ok as is gcc-4.0

gcc-3.4.3 and gcc-3.4.4 ICE though
Comment 6 Mark Loeser (RETIRED) gentoo-dev 2005-11-04 19:41:17 UTC
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14944

That's probably the patch we are looking for.  Ran into this with gcc-3.4.4
trying to compile the spec files for gcc-4
Comment 7 SpanKY gentoo-dev 2005-11-04 21:24:02 UTC
no, that PR doesnt resolve this bug ... more likely we're looking at
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24278
Comment 8 Mark Loeser (RETIRED) gentoo-dev 2005-12-15 00:18:01 UTC
Waiting on upstream to fix this.  Will apply the patch when we get it.