Compilation failure of tests with C++20 standard (caused by change of u8 literals) #2413
Closed
3 tasks
Labels
kind: bug
release item: 🐛 bug fix
solution: proposed fix
a fix for the issue has been proposed and waits for confirmation
Milestone
Compiling tests with gcc and the -std flag set to gnu++20 or c++20, leads to compilation issues.
What is the issue you have?
More precisely, the u8"" literals have changed with the C++20 standard via P0482 in a non backward-compatible way
char8_t
is not the same asunsigned char
.When we compile the test suite of the project we get the following kind of errors with gcc:
This comes from the following type of line which is not correct now:
As there are many ways to cope with this in the code (for instance described here, I let the maintainers decide which one fits the best.
Please describe the steps to reproduce the issue.
Build it the standard way
Relevant environment variables:
Can you provide a small but working code example?
We can warkaround the problem by disabling the
char8_t
support with the-fno-char8_t
compiler option.What is the expected behavior?
Compilation with no error
And what is the actual behavior instead?
See above.
Which compiler and operating system are you using?
Which version of the library did you use?
develop
branchIf you experience a compilation error: can you compile and run the unit tests?
The text was updated successfully, but these errors were encountered: