Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 6 years ago

Language

C++

Compiler

clang 6.0.1

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

Author

anonymous

over 6 years ago

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.68.0/clang-6.0.1/include -std=gnu++2a
prog.cc:24:8: warning: parentheses were disambiguated as redundant parentheses around declaration of variable named 'global' [-Wvexing-parse]
    foo(global);
       ^~~~~~~~
prog.cc:24:5: note: add enclosing parentheses to perform a function-style cast
    foo(global);
    ^
    (          )
prog.cc:24:8: note: remove parentheses to silence this warning
    foo(global);
       ^      ~
        
1 warning generated.
foo::foo()
foo::foo(int)
foo::foo()
Exit Code:
0