Language
C++
Compiler
gcc 12.1.0
Options
Warnings
Don't Use Boost
C++2a
-pedantic-errors
$ g++ prog.cc -Wall -Wextra -std=c++2a -pedantic-errors
Exit Code:
1
Author
anonymous
over 2 years ago
C++
gcc 12.1.0
Author
anonymous
over 2 years ago
$ g++ prog.cc -Wall -Wextra -std=c++2a -pedantic-errors
prog.cc: In function 'int main()':
prog.cc:27:19: error: 'type' is not a member of 'test::detail'; did you mean 'test::{anonymous}::detail::type'?
27 | test::detail::type x{.member_variable = 3};
| ^~~~
prog.cc:7:8: note: 'test::{anonymous}::detail::type' declared here
7 | struct type{
| ^~~~