[Bug c++/125886] std::declval in unevaluated typeid operand incorrectly triggers __declval_protector

vladislav.semykin at gmail dot com gcc-bugzilla@gcc.gnu.org
Wed Jun 24 20:07:36 GMT 2026


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125886

--- Comment #1 from Vladislav Semykin <vladislav.semykin at gmail dot com> ---
Patch link: https://gcc.gnu.org/pipermail/gcc-patches/2026-June/721508.html.

The tests were ran via:

make check-g++ RUNTESTFLAGS="dg.exp=rtti/*.C"
make check-g++ RUNTESTFLAGS="dg.exp=cpp0x/constexpr-typeid*.C"
make check-g++ RUNTESTFLAGS="dg.exp=cpp2a/constexpr-typeid*.C"
make check-g++ RUNTESTFLAGS="dg.exp=template/typeid*.C"

The result is: 264+6+3+9=302 succeeded tests.


More information about the Gcc-bugs mailing list