PR c++/83434 - typeinfo for noexcept function lacks noexcept information
authorKamlesh Kumar <kamleshbhalui@gmail.com>
Mon, 21 Oct 2019 20:19:28 +0000 (20:19 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 21 Oct 2019 20:19:28 +0000 (16:19 -0400)
commitdebf1662d1f0cbe54198119f1a74baf46ad6a41a
treed37b77eabd78fced6e683868f4fc7bd028499058
parent79cd6c7b905ca9390bc1e7c87c259a5a18cefa81
PR c++/83434 - typeinfo for noexcept function lacks noexcept information

2019-10-21  Kamlesh Kumar  <kamleshbhalui@gmail.com>

        * rtti.c (get_tinfo_decl_dynamic): Do not call
        TYPE_MAIN_VARIANT for function.
        (get_typeid): Likewise.

        * g++.dg/rtti/pr83534.C: New Test.

Reviewed-by: Jason Merrill <jason@redhat.com>
Co-Authored-By: Jason Merrill <jason@redhat.com>
From-SVN: r277270
gcc/cp/ChangeLog
gcc/cp/rtti.c
gcc/testsuite/g++.dg/rtti/pr83534.C [new file with mode: 0644]