[Bug c++/23725] New: [4.1 regression] Error message regression with g++.dg/inherit/using4.C

reichelt at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Sep 4 20:43:00 GMT 2005


Mainline issues the following diagnostic for the code from
g++.dg/inherit/using4.C:

================================
struct B { 
  void f();
}; 
 
struct D : B { 
  using B::f; 
  using B::f;  // { dg-error "repeated" }
}; 
================================

using4.C:7: error: repeated using declaration 'using#'function_decl' not
supported by dump_type#<type error>::f'

On the 4.0 branch we have the correct diagnostic:

using4.C:7: error: repeated using declaration 'using B::f'

-- 
           Summary: [4.1 regression] Error message regression with
                    g++.dg/inherit/using4.C
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23725



More information about the Gcc-bugs mailing list