[Bug c++/34395] New: [4.3 regression] Broken diagnostic: 'type_pack_expansion' not supported by dump_type_prefix/suffix

reichelt at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sat Dec 8 20:41:00 GMT 2007


The C++ frontend issues a broken diagnostic for the following invalid
testcase on mainline:

===========================================
template<int... N> void foo(int... x[N])
{
  struct A
  {
    A() { x; }
  };
}
===========================================

bug.cc: In constructor 'foo(int [N]...)::A::A()':
bug.cc:5: error: use of parameter from containing function
bug.cc:1: error:   '#'type_pack_expansion' not supported by
dump_type_prefix#<typeprefixerror>x#'type_pack_expansion' not supported by
dump_type_suffix#' declared here


-- 
           Summary: [4.3 regression] Broken diagnostic:
                    'type_pack_expansion' not supported by
                    dump_type_prefix/suffix
           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=34395



More information about the Gcc-bugs mailing list