This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: g++ 3.2.1 crashes with segmentation fault
- From: Oliver Kullmann <O dot Kullmann at Swansea dot ac dot uk>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 7 Jan 2003 12:38:17 +0000
- Subject: Re: g++ 3.2.1 crashes with segmentation fault
- References: <20030106182942.GA18912@swan.ac.uk>
Hi,
hunting down the bug was easier than I thought, and thus
The Bughunter proudly presents the Bug of the Week:
-------------------------------------------------------
namespace N {
template < typename T > class C : T {};
}
int main() {
N::C();
}
-------------------------------------------------------
given this little innocent (but incorrect) program we get
> g++ Fehler.cpp
Fehler.cpp: In function `int main()':
Fehler.cpp:6: internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
using
> g++ -v
Reading specs from /compsci/partition1/csoliver/GCC/gcc-3.2.1/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/specs
Configured with: /compsci/partition1/csoliver/GCC/gcc-3.2.1/configure --enable-threads=posix --enable-long-long --prefix=/compsci/partition1/csoliver/GCC/gcc-3.2.1 --with-local-prefix=/compsci/partition1/csoliver/GCC/Include_3.2.1 --enable-languages=c,c++ --disable-nls --enable-shared
Thread model: posix
gcc version 3.2.1
Using version 3.0.4 I get the same error.
Oliver