https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125886
Vladislav Semykin <vladislav.semykin at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEW |RESOLVED
Known to work| |17.0
Known to fail| |16.1.0
--- Comment #4 from Vladislav Semykin <vladislav.semykin at gmail dot com> ---
Confirmed fixed: https://godbolt.org/z/GWKebrEc1
GCC trunk now accepts the original reproducer (non-polymorphic
A_class, typeid(std::declval<A_class>())) without triggering
__declval_protector's static_assert, matching Clang 19.1.0 and
MSVC 19.51 (all three compilers call type_info::name() as
expected).
Marking as RESOLVED FIXED.