[Bug c++/105300] segfault from static_assert with user-defined string suffix argument
marxin at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Apr 19 14:11:24 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105300
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
CC| |marxin at gcc dot gnu.org
Last reconfirmed| |2022-04-19
Status|UNCONFIRMED |WAITING
--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Is it really a valid code since clang rejects it?
$ clang++ pr105300.C -c
pr105300.C:2:27: error: string literal with user-defined suffix cannot be used
here
static_assert(false, "foo"_x);
^
1 error generated.
More information about the Gcc-bugs
mailing list