This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
template parameters bug
- To: gcc-bugs at gcc dot gnu dot org
- Subject: template parameters bug
- From: Chris Leishman <masklin at debian dot org>
- Date: Fri, 23 Feb 2001 12:05:29 +1100
Hi all,
The attached code generates an "Internal compiler error" with g++. The code
is buggy (it's not defining a required template parameter) but I don't think
the error is entirely intuitive ;)
$ g++ -v
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.3/specs
gcc version 2.95.3 20010125 (prerelease)
$ g++ gcc-bug.cc
gcc-bug.cc:4: Internal compiler error.
gcc-bug.cc:4: Please submit a full bug report.
gcc-bug.cc:4: See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
Thanks,
Chris Leishman
template < class Itr = int, class _Other >
class A_Class { };
typedef A_Class<>* a_class_ptr;