[Bug c++/100675] std::string_view::find in constexpr function is not constant expression

2021-05-20 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100675 Patrick Palka changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC|

[Bug c++/100675] std::string_view::find in constexpr function is not constant expression

2021-05-20 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100675 --- Comment #2 from Jonathan Wakely --- Maybe we should just get rid of the __constant_string_p stuff entirely.

[Bug c++/100675] std::string_view::find in constexpr function is not constant expression

2021-05-19 Thread hewillk at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100675 --- Comment #1 from 康桓瑋 --- (In reply to 康桓瑋 from comment #0) > The following code fails in 10.1, 10.2, and 10.3: > > https://godbolt.org/z/soGT9o4GY > > #include > > template > constexpr bool g() { > std::string_view s = " "; >