This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/8019: g++ CRASHES on an illegal initialization in a template class instead of reporting an error
- From: bangerth at dealii dot org
- To: coola at ngs dot ru, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 4 Nov 2002 23:15:21 -0000
- Subject: Re: c++/8019: g++ CRASHES on an illegal initialization in a template class instead of reporting an error
- Reply-to: bangerth at dealii dot org, coola at ngs dot ru, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: g++ CRASHES on an illegal initialization in a template class instead of reporting an error
State-Changed-From-To: open->closed
State-Changed-By: bangerth
State-Changed-When: Mon Nov 4 15:15:20 2002
State-Changed-Why:
Works for me and reports correct (though at first sight
not very useful) message:
tmp/g> /home/bangerth/bin/gcc-3.3x-pre/bin/c++ x.cc
x.cc: In constructor `A<T>::A(T) [with T = int]':
x.cc:8: instantiated from here
x.cc:5: error: type `class A<int>' is not a direct base of `A<int>'
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8019