[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#197674: g++-3.3: ICE in regenerate_decl_from_template



retitle 197674 [fixed in 3.4] ICE in regenerate_decl_from_template
tags 197674 + upstream
thanks

see the gcc-snapshot package for the next gcc version.

$ /usr/lib/gcc-snapshot/bin/g++ -frtti -ffor-scope -posix -ansi -pedantic -pipe -Wsign-promo -Wall -Wpointer-arith -Wcast-align -Wredundant-decls -Woverloaded-virtual -Wsign-compare -Wold-style-cast -Wno-pmf-conversions -W -Wwrite-strings -Werror -D_XOPEN_SOURCE=600 -g -I. -I../include -I.. --save-temps -fPIC -c authserver.ii 
g++: warning: -pipe ignored because -save-temps specified
authserver.cc: In member function `bool gpct::AuthServer::IsPrivileged() const
   ':
authserver.cc:155: error: missing template arguments
authserver.cc: In member function `bool gpct::AuthServer::DropPrivileges() 
   const':
authserver.cc:179: error: missing template arguments
authserver.cc: In member function `bool gpct::AuthServer::CanRunProgram() const
   ':
authserver.cc:201: error: missing template arguments

Brian M. Carlson writes:
> Package: g++-3.3
> Version: 1:3.3-3
> Severity: normal
> 
> g++ -frtti -ffor-scope -posix -ansi -pedantic -pipe -Wsign-promo -Wall -Wpointer-arith -Wcast-align -Wredundant-decls -Woverloaded-virtual -Wsign-compare -Wold-style-cast -Wno-pmf-conversions -W -Wwrite-strings -Werror -D_XOPEN_SOURCE=600 -g -I. -I../include -I.. --save-temps -fPIC -c -o authserver.o authserver.cc
> g++: warning: -pipe ignored because -save-temps specified
> authserver.tcc: In member function `bool
>    gpct::AuthServer::IterateThrough(unsigned int, bool
>    (gpct::AuthServer::*)(unsigned int) const, Bf, bool) const':
> authserver.tcc:32:   instantiated from `bool gpct::AuthServer::IterateThrough(unsigned int, bool (gpct::AuthServer::*)(unsigned int) const, Bf, bool) const [with Bf = std::logical_or<_Tp>]'
> authserver.cc:155:   instantiated from here
> authserver.tcc:32: internal compiler error: in regenerate_decl_from_template,
>    at cp/pt.c:10086
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <URL:http://gcc.gnu.org/bugs.html> for instructions.
> make[1]: *** [authserver.o] Error 1
> 
> 
> It segfaults with 3.2 and it has problems with 2.95 because it uses
> std::logical_or<T>.
> 
> Preprocessed source and assembly are available at:
> http://crustytoothpaste.ath.cx:8008/~bmc/files/free/authserver.ii
> http://crustytoothpaste.ath.cx:8008/~bmc/files/free/authserver.s
> 
> 6f3d40e5bf4bec2255339921ce46219d *authserver.ii
> f6dc8367d0c8e09dbaec2fde77e67f67 *authserver.s
> 
> 
> -- System Information:
> Debian Release: testing/unstable
> Architecture: i386
> Kernel: Linux stonewall 2.4.20-3-k7 #1 Sun Jun 8 01:35:14 EST 2003 i686
> Locale: LANG=C, LC_CTYPE=C
> 
> Versions of packages g++-3.3 depends on:
> ii  gcc-3.3                       1:3.3-3    The GNU C compiler
> ii  gcc-3.3-base                  1:3.3-3    The GNU Compiler Collection (base 
> ii  libc6                         2.3.1-17   GNU C Library: Shared libraries an
> ii  libstdc++5-3.3-dev            1:3.3-3    The GNU Standard C++ Library v3 (d
> 
> -- no debconf information
> 
> 
> -- 
> Brian M. Carlson <sandals@crustytoothpaste.ath.cx> 0x560553e7
> "Let us think the unthinkable, let us do the undoable. Let us prepare
>  to grapple with the ineffable itself, and see if we may not eff it
>  after all." --Douglas Adams



Reply to: