This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/66159] New: bogus warning for alias-declaration using elaborated-type-specifier


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]