The following invalid code snippet triggers a broken diagnostic on mainline:

======================================================================
template<typename...> struct A {};

template<template<typename...> class T, typename ...U> struct B
{
  A<typename T<U>::X...> a;
};

B<A,int> b;
======================================================================

bug.cc: In instantiation of 'B<A, #'argument_pack_select' not supported by
dump_expr#<expression error> >':
bug.cc:8:   instantiated from here
bug.cc:5: error: no type named 'X' in 'struct A<int>'


-- 
           Summary: [4.3 regression] Broken diagnostic:
                    'argument_pack_select' not supported by dump_expr
           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=33214

Reply via email to