public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/28736]  New: [4.2 regression] ICE with friend of invalid template class
@ 2006-08-15 18:37 reichelt at gcc dot gnu dot org
  2006-08-15 18:38 ` [Bug c++/28736] " reichelt at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-08-15 18:37 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-08-26 17:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-15 18:37 [Bug c++/28736] New: [4.2 regression] ICE with friend of invalid template class reichelt at gcc dot gnu dot org
2006-08-15 18:38 ` [Bug c++/28736] " reichelt at gcc dot gnu dot org
2006-08-15 20:44 ` lmillward at gcc dot gnu dot org
2006-08-20 22:41 ` mmitchel at gcc dot gnu dot org
2006-08-26 17:41 ` lmillward at gcc dot gnu dot org
2006-08-26 17:42 ` lmillward at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).