[Bug c++/94750] New: [10 Regression] Redundant identical using-declaration rejected since r10-554

ppalka at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Apr 24 18:51:06 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94750

            Bug ID: 94750
           Summary: [10 Regression] Redundant identical using-declaration
                    rejected since r10-554
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ppalka at gcc dot gnu.org
  Target Milestone: ---

$ cat testcase.C
namespace ns
{
  using type = int;
}

int
main()
{
  using ns::type;
  using ns::type;
}

$ g++ testcase.C
testcase.C: In function ‘int main()’:
testcase.C: error: redeclaration of ‘using type = int’
   10 |   using ns::type;
      |             ^~~~
testcase.C: note: previous declaration ‘using type = int’
    3 |   using type = int;
      |         ^~~~


More information about the Gcc-bugs mailing list