This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/20157] New: Internal compiler error on invalid code
- From: "sstrasser at systemhaus-gruppe dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Feb 2005 06:35:34 -0000
- Subject: [Bug c++/20157] New: Internal compiler error on invalid code
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
4.0.0 outputs internal compiler error on the following invalid code.
3.3/3.4 silently ignores it.
if the invalid template function specialization is a definition 3.3/3.4
correctly reports it, 4.0.0 still outputs an internal compiler error.
template<typename AT>
struct A{
template<typename T>
void function(T);
};
template<>
template<typename ABC,typename DEF>
void A<int>::function(ABC);
--
Summary: Internal compiler error on invalid code
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: sstrasser at systemhaus-gruppe dot de
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20157