Open dk949 opened 3 years ago
Use of std::source_location (and presumably any other feature not yet implemented in clang) is flagged as an error.
std::source_location
Use of these features is not flagged as an error.
#include <source_location> #include <iostream>
int main(){ std::cout << std::source_location::current().function_name();
}
2. Make sure it compiles with gcc ```sh g++ test.cpp -std=c++20
compile_commands.json
[ { "directory": ".", "command": "/usr/bin/c++ -std=gnu++20 -o test test.cpp", "file": "test.cpp" } ]
git describe --tags --long
I did try it with --gcc-toolchain=/usr (and various other directories) but that didn't work either. Thanks in advance.
--gcc-toolchain=/usr
Observed behavior
Use of
std::source_location
(and presumably any other feature not yet implemented in clang) is flagged as an error.Expected behavior
Use of these features is not flagged as an error.
Steps to reproduce
int main(){ std::cout << std::source_location::current().function_name();
}
compile_commands.json
below)System information
git describe --tags --long
): 0.20210330-3I did try it with
--gcc-toolchain=/usr
(and various other directories) but that didn't work either.Thanks in advance.