Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 2 years ago

Language

C++

Compiler

clang 15.0.0

Options
Warnings
Boost 1.80.0
C++2b(GNU)
no pedantic

Author

anonymous

over 2 years ago

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.80.0-clang-15.0.0/include -std=gnu++2b
prog.cc:3:16: error: constexpr variable 'c' must be initialized by a constant expression
constexpr auto c = INVALID_HANDLE;
               ^   ~~~~~~~~~~~~~~
prog.cc:3:20: note: cast that performs the conversions of a reinterpret_cast is not allowed in a constant expression
constexpr auto c = INVALID_HANDLE;
                   ^
prog.cc:1:25: note: expanded from macro 'INVALID_HANDLE'
#define INVALID_HANDLE ((void*)(long long)-1);
                        ^
1 error generated.
Exit Code:
1