The following valid code is rejected by GCC: ``` #include <typeinfo> int main() { constexpr auto v1 = &typeid(int); constexpr auto v2 = &typeid(char); static_assert( v1 != v2 ); } ``` Demo: https://gcc.godbolt.org/z/eexj7vcPG
It has always been broken since C++11 support was added: #include <typeinfo> static_assert( &typeid(int) != &typeid(char) ,"");
Let's call this a dup of the recently fixed PR103600 *** This bug has been marked as a duplicate of bug 103600 ***