GNU C++ 2.95.2, Linux 2.2.10, Internal Compiler Error
Mark H. Bowden
Mark.H.Bowden@redstone.army.mil
Tue Feb 1 12:37:00 GMT 2000
From: Mark H. Bowden <mbowden@cg2.com>
Date: 1 February 2000
Re: g++ internal compiler error
Compiling the source code below causes an internal compiler error.
-------------------------------------------------
CPP output...
# 1 "bug.cpp"
template <typename T>
class A {
public:
A::A()
{
typename T::SomeType;
T::SomeType::StaticMethod();
}
};
class B {
public:
static void StaticMethod() {}
};
class C
{
public:
typedef B SomeType;
};
int main()
{
A<C> a;
}
-------------------------------------------------
The program was compiled with...
g++ -g bug.cpp -o bug
-------------------------------------------------
Compiler output messages...
bug.cpp: In method `A<T>::A()':
bug.cpp:6: Internal compiler error.
bug.cpp:6: Please submit a full bug report.
bug.cpp:6: See <URL: http://www.gnu.org/software/gcc/faq.html#bugreport > for
instructions.
-------------------------------------------------
"configure" options: none
Compiler source modifications: none
-------------------------------------------------
Linux version 2.2.10 (root@hoss) (gcc version 2.95 19990728 (release)) #16
SMP Tue Aug 10 08:36:11 CDT 1999
-------------------------------------------------
"g++ -v" yields...
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/specs
gcc version 2.95.2 19991024 (release)
-------------------------------------------------
Machine type...
SGI 540 PC
/proc/cpuinfo...
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 7
model name : 00/07
stepping : 2
cpu MHz : 501.174741
cache size : 512 KB
fdiv_bug : no
hlt_bug : yes
sep_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat
pse36 mmx osfxsr kni
bogomips : 498.07
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 7
model name : 00/07
stepping : 2
cpu MHz : 501.174741
cache size : 512 KB
fdiv_bug : no
hlt_bug : yes
sep_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat
pse36 mmx osfxsr kni
bogomips : 499.71
processor : 2
vendor_id : GenuineIntel
cpu family : 6
model : 7
model name : 00/07
stepping : 2
cpu MHz : 501.174741
cache size : 512 KB
fdiv_bug : no
hlt_bug : yes
sep_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat
pse36 mmx osfxsr kni
bogomips : 499.71
processor : 3
vendor_id : GenuineIntel
cpu family : 6
model : 7
model name : 00/07
stepping : 2
cpu MHz : 501.174741
cache size : 512 KB
fdiv_bug : no
hlt_bug : yes
sep_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat
pse36 mmx osfxsr kni
bogomips : 499.71
_______________________________
Mark H. Bowden CG2, Inc. 256 533-2703
More information about the Gcc-bugs
mailing list