This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/66159] New: bogus warning for alias-declaration using elaborated-type-specifier
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 15 May 2015 13:04:16 +0000
- Subject: [Bug c++/66159] New: bogus warning for alias-declaration using elaborated-type-specifier
- Auto-submitted: auto-generated
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.