Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 85332 - GCC 3.3.5-r1 fails to compile basic C++ template program
Summary: GCC 3.3.5-r1 fails to compile basic C++ template program
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-15 05:40 UTC by Stephen Torri
Modified: 2005-12-11 18:32 UTC (History)
0 users

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


Attachments
Sample file which shows the error (temp_func_error.cpp,715 bytes, text/plain)
2005-03-15 05:41 UTC, Stephen Torri
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stephen Torri 2005-03-15 05:40:55 UTC
When I try to compile the basic program that is attached gcc 3.3.5-r1 reports that there is a parse error with the program. Yet if I compile it with gcc-3.4.3.20050110 or gcc-4.0.0 (20050312 prerelease) it works.

Reproducible: Always
Steps to Reproduce:
1. gcc-config 1 (to switch to gcc 3.3.5-r1)
2. source /etc/profile
3. g++ -o temp_func_error temp_func_error.cpp

Actual Results:  
storri@base data_source $ g++ -o temp_func_error temp_func_error.cpp
temp_func_error.cpp: In member function `virtual typename Data_Type::ptr
   A<Data_Type>::get()':
temp_func_error.cpp:36: error: parse error before `;' token


Expected Results:  
Compiled

Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20040808-r1,
2.6.10-gentoo-r6 i686)
=================================================================
System uname: 2.6.10-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Mar  5 2005, 10:16:29)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O3 -pipe"
CHOST="i686-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=pentium4 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig buildpkg ccache distlocks fixpackages sandbox
sfperms strict"
GENTOO_MIRRORS="http://lug.mtu.edu/gentoo ftp://ftp.ndlug.nd.edu/pub/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apm arts avi berkdb bitmap-fonts bonobo cdr crypt cups curl
emboss encode esd fam font-server foomaticdb fortran gdbm gif gnome gpm gtk gtk2
gtkhtml guile imagemagick imlib ipv6 jack java jpeg kde libg++ libwww mad mikmod
motif mozilla mp3 mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png
python qt quicktime readline sdl spell ssl svga tcltk tcpd tetex tiff truetype
truetype-fonts type1-fonts xml xml2 xmms xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 1 Stephen Torri 2005-03-15 05:41:46 UTC
Created attachment 53516 [details]
Sample file which shows the error
Comment 2 Mark Loeser (RETIRED) gentoo-dev 2005-12-11 18:32:20 UTC
GCC-3.4.4 is stable on almost all archs, so use that instead :)