template<int n> struct A { A(){ goto *&&a; a:; } }; A<0> a;
Vladimir Roganov
var@skif.botik.ru
Sat Feb 8 12:01:00 GMT 2003
Hello!
One-line program pointed in <<Subject>> crashes all GCCs I only able to run:
[var@florentina tmp]$ for i in /usr/bin /usr/local/bin /usr/local/opt/bin ; do $i/gcc -v ; $i/gcc a.cc ; done
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-110)
a.cc: In method `A<n>::A () [with int n = 0]':
a.cc:1: instantiated from here
a.cc:1: Internal compiler error in find_function_data, at function.c:
326
Please submit a full bug report.
See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions.
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.1/specs
Configured with: ../gcc-3.0.1/configure --prefix=/usr/local --enable-languages=c,c++,tc,f77 --enable-shared --enable-threads --disable-checking --host=i686-pc-linux-gnu
Thread model: posix
gcc version 3.0.1
a.cc: In constructor `A<n>::A() [with int n = 0]':
a.cc:1: instantiated from `A<n>::A() [with int n = 0]'
a.cc:1: instantiated from here
a.cc:1: Internal compiler error in copy_body_r, at cp/optimize.c:373
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
Reading specs from /usr/local/opt/lib/gcc-lib/i386-redhat-linux/3.2.1/specs
Configured with: ../gcc-3.2.1/configure --prefix=/usr/local/opt --enable-languages=c,c++,f77 --enable-shared --enable-threads --disable-checking --host=i386-redhat-linux
Thread model: posix
gcc version 3.2.1
a.cc: In constructor `A<n>::A() [with int n = 0]':
a.cc:1: instantiated from `A<n>::A() [with int n = 0]'
a.cc:1: instantiated from here
a.cc:1: Internal compiler error in find_function_data, at function.c:330
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
Sorry for bad-formed bug report,
Best regards,
Vladimir
More information about the Gcc-bugs
mailing list