.
Product: gcc
Version: 7.3.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: jenda.tusil at gmail dot com
Target Milestone: ---
Consider classes A and B
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: jenda.tusil at gmail dot com
Target Milestone: ---
g++ -std=c++14 does not compile this:
enum E : int;
enum ::E : int{};
It says:
2:10: error: expected unqualified-id before ‘:’ token
Clang
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83132
--- Comment #2 from Jan Tušil ---
The 'struct' version can be simplified to:
struct E;
struct ::E {};
Which gives the following error:
2:12: error: global qualification of class name is invalid before '{' token