constexpr string literal: undefined function '_M_construct<const char *>' with libstdc++ #112894
Labels
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
constexpr
Anything related to constant evaluation
The C++20 code below fails to compile under Ubuntu 24.04 with Clang trunk using
clang++ -c -std=c++20 lit.cpp
. In brief, using a string literal such as"mystring"s
in a constexpr context fails when using libstdc++. (Compiler Explorer link is here.)The error message is below:
The text was updated successfully, but these errors were encountered: