public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/42054]  New: [4.3/4.4/4.5 Regression] ICE with invalid template parameter
@ 2009-11-15 21:10 reichelt at gcc dot gnu dot org
  2009-11-15 21:10 ` [Bug c++/42054] " reichelt at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2009-11-15 21:10 UTC (permalink / raw)
  To: gcc-bugs

The following invalid testcase triggers an ICE since GCC 4.2.0:

=================================
template<int int> struct A;
template<int int> struct A;
=================================

bug.cc:1:14: error: two or more data types in declaration of 'parameter'
bug.cc:2:14: error: two or more data types in declaration of 'parameter'
bug.cc:2:26: error: redefinition of default argument for '<declaration error>'
bug.cc:2:26: internal compiler error: tree check: expected tree that contains
'decl minimal' structure, have 'error_mark' in redeclare_class_template, at
cp/pt.c:4576
Please submit a full bug report, [etc.]


-- 
           Summary: [4.3/4.4/4.5 Regression] ICE with invalid template
                    parameter
           Product: gcc
           Version: 4.5.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=42054


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

end of thread, other threads:[~2010-05-22 18:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-15 21:10 [Bug c++/42054] New: [4.3/4.4/4.5 Regression] ICE with invalid template parameter reichelt at gcc dot gnu dot org
2009-11-15 21:10 ` [Bug c++/42054] " reichelt at gcc dot gnu dot org
2009-11-22 21:53 ` simartin at gcc dot gnu dot org
2009-11-27 11:19 ` rguenth at gcc dot gnu dot org
2010-02-27 19:22 ` simartin at gcc dot gnu dot org
2010-02-27 19:28 ` [Bug c++/42054] [4.3/4.4 " simartin at gcc dot gnu dot org
2010-05-22 18:34 ` rguenth 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).