More fallout from the variadic templates on mainline:

===========================================================
template<typename... T> void foo(const T...) {}

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

bug.cc: In function 'void foo(T ...) [with T = int]':
bug.cc:5:   instantiated from here
bug.cc:1: internal compiler error: tree check: expected tree_vec, have
error_mark in regenerate_decl_from_template, at cp/pt.c:13791
Please submit a full bug report, [etc.]

The code is (IMHO wrongfully) accepted if I replace the definition of foo by a
declaration.


-- 
           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, accepts-invalid, 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=31434

Reply via email to