public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/21467] New: ICE for template function if missing required default argument
@ 2005-05-09 12:31 sylvain dot joyeux at m4x dot org
  2005-05-09 12:53 ` [Bug c++/21467] " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: sylvain dot joyeux at m4x dot org @ 2005-05-09 12:31 UTC (permalink / raw)
  To: gcc-bugs

The following code makes g++ 3.4.4 and g++ 3.3.6 (Debian) crash on my system. 
Adding the missing default argument for arg1 fixes the crash 
 
template<typename F> 
void test(F function, bool arg0 = false, bool arg1) 
{ 
} 
 
int main() 
{ 
    test(main); 
} 
 
Detailed G++ versions: 
 
g++-3.3 (GCC) 3.3.6 (Debian 1:3.3.6-3) 
Reading specs from /usr/lib/gcc-lib/powerpc-linux/3.3.6/specs 
Configured with: ../src/configure -v 
--enable-languages=c,c++,java,f77,pascal,objc,ada --prefix=/usr 
--mandir=/usr/share/man --infodir=/usr/share/info 
--with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared 
--enable-__cxa_atexit --with-system-zlib --enable-nls 
--without-included-gettext --enable-clocale=gnu --enable-debug 
--enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc 
--disable-multilib powerpc-linux 
Thread model: posix 
gcc version 3.3.6 (Debian 1:3.3.6-3) 
 
g++-3.4 (GCC) 3.4.4 20050314 (prerelease) (Debian 3.4.3-13) 
Reading specs from /usr/lib/gcc/powerpc-linux/3.4.4/specs 
Configured with: ../src/configure -v 
--enable-languages=c,c++,java,f77,pascal,objc,ada --prefix=/usr 
--libexecdir=/usr/lib --with-gxx-include-dir=/usr/include/c++/3.4 
--enable-shared --with-system-zlib --enable-nls --without-included-gettext 
--program-suffix=-3.4 --enable-__cxa_atexit --enable-libstdcxx-allocator=mt 
--enable-clocale=gnu --enable-libstdcxx-debug --enable-java-gc=boehm 
--enable-java-awt=gtk --disable-multilib --disable-softfloat powerpc-linux 
Thread model: posix 
gcc version 3.4.4 20050314 (prerelease) (Debian 3.4.3-13)

-- 
           Summary: ICE for template function if missing required default
                    argument
           Product: gcc
           Version: 3.4.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sylvain dot joyeux at m4x dot org
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21467


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-05-09 14:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-09 12:31 [Bug c++/21467] New: ICE for template function if missing required default argument sylvain dot joyeux at m4x dot org
2005-05-09 12:53 ` [Bug c++/21467] " pinskia at gcc dot gnu dot org
2005-05-09 14:12 ` giovannibajo at libero dot it
2005-05-09 14:25 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).