Bug#148603: gcc: crash when template declared after use
reassign 148603 g++-2.95
retitle 148603 [fixed in g++-3.1] crash when template declared after use
tags 148603 + fixed
thanks
unlikely to be fixed in g++-2.95. fixed in both g++-3.0 and g++-3.1
Glenn Maynard writes:
> Package: gcc
> Version: 2:2.95.4-15
> Severity: normal
>
> struct T {
> void A()
> {
> B("x");
> }
>
> template<class T>
> void B(const T &n)
> {
> }
> };
>
> 06:26pm glenn@zewt.pts/5 [~/prob] g++ -g -Wall oops.cc
> oops.cc: In method `void T::B<char[2]>(const char (&)[2])':
> oops.cc:4: instantiated from here
> oops.cc:9: Internal compiler error.
>
> (Reorder the functions and this goes away.)
>
> -- System Information
> Debian Release: 3.0
> Architecture: i386
> Kernel: Linux zewt.org 2.4.4-xfs #2 SMP Sun May 27 17:49:22 EDT 2001 i686
> Locale: LANG=en_US.utf-8, LC_CTYPE=en_US.utf-8
>
> Versions of packages gcc depends on:
> ii cpp 2:2.95.4-15 The GNU C preprocessor.
> ii cpp-2.95 1:2.95.4-9 The GNU C preprocessor.
> ii gcc-2.95 1:2.95.4-9 The GNU C compiler.
>
> -- no debconf information
>
>
>
> --
> To UNSUBSCRIBE, email to debian-gcc-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
--
To UNSUBSCRIBE, email to debian-gcc-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: