Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 2 years ago

Language

C++

Compiler

gcc 12.1.0

Options
Warnings
Don't Use Boost
C++2a
-pedantic-errors

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{
      |        ^~~~
Exit Code:
1