public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/35023]  New: [4.3 regression] ICE with parameter pack in variable declaration
@ 2008-01-30  0:22 reichelt at gcc dot gnu dot org
  2008-01-30  0:22 ` [Bug c++/35023] " reichelt at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-01-30  0:22 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code snippet triggers an ICE on mainline since today:

=============================================================
template<typename... T> int foo()
{
  T t;
  return t;
}

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

bug.cc: In function 'int foo()':
bug.cc:3: error: parameter packs not expanded with `...':
bug.cc:3: note:         'T'
bug.cc: In function 'int foo() [with T = int]':
bug.cc:9:   instantiated from here
bug.cc:4: internal compiler error: tree check: expected record_type or
union_type or qual_union_type, have template_type_parm in lookup_conversions,
at cp/search.c:2444
Please submit a full bug report, [etc.]


-- 
           Summary: [4.3 regression] ICE with parameter pack in variable
                    declaration
           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=35023


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

end of thread, other threads:[~2008-02-15 17:35 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-30  0:22 [Bug c++/35023] New: [4.3 regression] ICE with parameter pack in variable declaration reichelt at gcc dot gnu dot org
2008-01-30  0:22 ` [Bug c++/35023] " reichelt at gcc dot gnu dot org
2008-01-30 11:35 ` rguenth at gcc dot gnu dot org
2008-01-30 11:35 ` rguenth at gcc dot gnu dot org
2008-02-14 21:43 ` dgregor at gcc dot gnu dot org
2008-02-15  3:51 ` dgregor at gcc dot gnu dot org
2008-02-15 17:34 ` dgregor at gcc dot gnu dot org
2008-02-15 17:35 ` dgregor 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).