public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/31436]  New: [4.3 regression] ICE with invalid use of parameter pack in function arg
@ 2007-04-02 19:47 reichelt at gcc dot gnu dot org
  2007-04-02 19:47 ` [Bug c++/31436] " reichelt at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-04-02 19:47 UTC (permalink / raw)
  To: gcc-bugs

More fallout from the variadic templates on mainline:

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

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

bug.cc:1: error: parameter packs not expanded with `...':
bug.cc:1: note:         'T'
bug.cc: In function 'int foo(const T&) [with T = <expression error>]':
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:2432
Please submit a full bug report, [etc.]

Similar to PR31434 and PR31435 as this is also invalid use of a
parameter pack in a function argument.


-- 
           Summary: [4.3 regression] ICE with invalid use of parameter pack
                    in function arg
           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=31436


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

end of thread, other threads:[~2007-05-26 19:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-02 19:47 [Bug c++/31436] New: [4.3 regression] ICE with invalid use of parameter pack in function arg reichelt at gcc dot gnu dot org
2007-04-02 19:47 ` [Bug c++/31436] " reichelt at gcc dot gnu dot org
2007-04-25 16:59 ` dgregor at gcc dot gnu dot org
2007-05-26 19:11 ` reichelt 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).