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

            Bug ID: 66159
           Summary: bogus warning for alias-declaration using
                    elaborated-type-specifier
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: redi at gcc dot gnu.org
  Target Milestone: ---

struct X { };

typedef struct ::X x1;

using x2 = struct ::X;


t.cc:5:21: warning: declaration ‘struct X’ does not declare anything
 using x2 = struct ::X;
                     ^

The two forms should be equivalent.

Reply via email to