This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/28736] New: [4.2 regression] ICE with friend of invalid template class
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Aug 2006 18:37:36 -0000
- Subject: [Bug c++/28736] New: [4.2 regression] ICE with friend of invalid template class
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following invalid testcase triggers an ICE on mainline:
=========================================
template<void> struct A
{
template<typename> friend struct B;
};
template<typename> struct B {};
B<int> b;
=========================================
bug.cc:1: error: 'void' is not a valid type for a template constant parameter
bug.cc:3: internal compiler error: tree check: expected var_decl or
function_decl or type_decl or template_decl, have error_mark in
most_general_template, at cp/pt.c:11253
Please submit a full bug report, [etc.]
This is probably fallout from PR 27668.
--
Summary: [4.2 regression] ICE with friend of invalid template
class
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, error-recovery, monitored
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
BugsThisDependsOn: 27668
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28736