Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 6 years ago

Language

C++

Compiler

gcc HEAD 10.0.0 20190825 (experimental)

Options
Warnings
Boost 1.71.0
C++2a(GNU)
no pedantic

Author

anonymous

almost 6 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.71.0/gcc-head/include -std=gnu++2a
prog.cc: In lambda function:
prog.cc:8:41: error: expected '{' before ')' token
    8 |     int ( **p )[N1] = new ( int ( *[N2] )[N1] );
      |                                         ^
prog.cc: In function 'int main()':
prog.cc:8:35: error: no match for 'operator*' (operand type is 'main()::<lambda()>')
    8 |     int ( **p )[N1] = new ( int ( *[N2] )[N1] );
prog.cc:8:48: error: expected type-specifier before ';' token
    8 |     int ( **p )[N1] = new ( int ( *[N2] )[N1] );
      |                                                ^
prog.cc:8:13: warning: unused variable 'p' [-Wunused-variable]
    8 |     int ( **p )[N1] = new ( int ( *[N2] )[N1] );
      |             ^
Exit Code:
1