This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/31445] New: [4.3 regression] type_argument_pack not supported by dump_type


More fallout from the variadic templates on mainline:

===========================================================
template <typename... T> struct A
{
  void foo(T...);
  A(T... t) { foo(t); }
};

A<int> a(0);
===========================================================

This is only a diagnostic problem in the second to last line:

bug.cc: In constructor 'A<T>::A(T ...)':
bug.cc:4: error: parameter packs not expanded with `...':
bug.cc:4: note:         't'
bug.cc: In constructor 'A<T>::A(T ...) [with T = int]':
bug.cc:7:   instantiated from here
bug.cc:4: error: no matching function for call to
'A<int>::foo(#'type_argument_pack' not supported by dump_type#<type error>)'
bug.cc:3: note: candidates are: void A<T>::foo(T ...) [with T = int]


-- 
           Summary: [4.3 regression] type_argument_pack not supported by
                    dump_type
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: diagnostic, 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=31445


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]