Author
anonymous
almost 5 years ago
Language
Compiler
Options
Author
anonymous
almost 5 years ago
$
prog.cc:2:18: error: declaration of 'using A = struct A' changes meaning of 'A' [-fpermissive]
2 | struct B { using A = A; };
| ^
prog.cc:1:8: note: 'A' declared here as 'struct A'
1 | struct A {};
| ^
prog.cc: In function 'int main()':
prog.cc:6:7: warning: unused variable 'b' [-Wunused-variable]
6 | B b;
| ^
Exit Code:
1