Call to consteval method from constexpr constructor makes constructor consteval. #123052
Labels
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
consteval
C++20 consteval
constexpr
Anything related to constant evaluation
With
consteval size()
methodTest
copy constructor becomes immediate function, but it should not.Without consteval with
constexpr size()
everything goes as expected.GCC doesn't have that problem with consteval methods, called in contructors.
https://godbolt.org/z/P157TafW8
The text was updated successfully, but these errors were encountered: