public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/51398] New: [4.7 Regression] ICE with invalid template parameter
@ 2011-12-04  0:00 reichelt at gcc dot gnu.org
  2011-12-04  0:00 ` [Bug c++/51398] " reichelt at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: reichelt at gcc dot gnu.org @ 2011-12-04  0:00 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 51398
           Summary: [4.7 Regression] ICE with invalid template parameter
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: reichelt@gcc.gnu.org


The following invalid code snippet troggers an ICE on trunk:

==================================
template<void, int N> struct A
{
  static const int i = N;
};
==================================

bug.cc:1:10: error: 'void' is not a valid type for a template non-type
parameter
bug.cc:3:24: internal compiler error: tree check: expected tree that contains
'decl common' structure, have 'error_mark' in parameter_of_template_p, at
cp/pt.c:8127
Please submit a full bug report, [etc.]


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

end of thread, other threads:[~2012-01-23 17:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-04  0:00 [Bug c++/51398] New: [4.7 Regression] ICE with invalid template parameter reichelt at gcc dot gnu.org
2011-12-04  0:00 ` [Bug c++/51398] " reichelt at gcc dot gnu.org
2011-12-06 14:26 ` rguenth at gcc dot gnu.org
2011-12-07 16:59 ` paolo.carlini at oracle dot com
2012-01-23 17:14 ` paolo.carlini at oracle dot com
2012-01-23 18:06 ` paolo at gcc dot gnu.org
2012-01-23 18:08 ` paolo.carlini at oracle dot com

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).