public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/31446]  New: [4.2/4.3 regression] ICE with invalid template parameter
@ 2007-04-02 20:41 reichelt at gcc dot gnu dot org
  2007-04-02 20:41 ` [Bug c++/31446] " reichelt at gcc dot gnu dot org
                   ` (17 more replies)
  0 siblings, 18 replies; 19+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-04-02 20:41 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code snippet triggers an ICE on mainline and 4.2 branch:

===========================================================
template<void> struct A
{
  template<int> friend void foo();
};

void bar()
{
  foo<0>();
}
===========================================================

bug.cc:1: error: 'void' is not a valid type for a template constant parameter
bug.cc: In function 'void bar()':
bug.cc:8: internal compiler error: in retrieve_specialization, at cp/pt.c:856
Please submit a full bug report, [etc.]


-- 
           Summary: [4.2/4.3 regression] ICE with invalid template parameter
           Product: gcc
           Version: 4.3.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


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31446


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

end of thread, other threads:[~2009-03-30 21:44 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-02 20:41 [Bug c++/31446] New: [4.2/4.3 regression] ICE with invalid template parameter reichelt at gcc dot gnu dot org
2007-04-02 20:41 ` [Bug c++/31446] " reichelt at gcc dot gnu dot org
2007-04-15 22:14 ` mmitchel at gcc dot gnu dot org
2007-05-14 21:31 ` mmitchel at gcc dot gnu dot org
2007-07-20  3:50 ` mmitchel at gcc dot gnu dot org
2007-09-19 18:00 ` pcarlini at suse dot de
2007-09-19 23:20 ` janis at gcc dot gnu dot org
2007-09-20  9:34 ` pcarlini at suse dot de
2007-09-26 18:24 ` pcarlini at suse dot de
2007-09-28 15:40 ` pcarlini at suse dot de
2007-09-30 15:53 ` pcarlini at suse dot de
2007-10-01  0:52 ` pcarlini at suse dot de
2007-10-09 19:28 ` mmitchel at gcc dot gnu dot org
2007-10-16 22:22 ` paolo at gcc dot gnu dot org
2007-10-16 22:24 ` [Bug c++/31446] [4.2 " pcarlini at suse dot de
2008-02-01 16:57 ` jsm28 at gcc dot gnu dot org
2008-03-16 17:20 ` rguenth at gcc dot gnu dot org
2008-05-19 20:47 ` jsm28 at gcc dot gnu dot org
2009-03-30 21:44 ` jsm28 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).