[Bug c++/110256] passing concept to concept compiles

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

[Bug c++/110256] passing concept to concept compiles

2023-06-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110256 --- Comment #2 from Andrew Pinski --- MSVC also accepts this code ... It might be the case that clang is incorrectly rejecting it. Basically the way I understand is that b will always be false due to incorrect usage of std::integral/c here. temp

[Bug c++/110256] passing concept to concept compiles

2023-06-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110256 --- Comment #1 from Andrew Pinski --- Reduced to: ``` template concept c = true; template concept d = false; template concept b = requires (T t ) { { t } -> d; }; static_assert(!b); ```