[Bug c++/25466] typeid expression fails to throw bad_typeid according to 5.2.8p2

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Dec 17 16:53:00 GMT 2015


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

--- Comment #19 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Thu Dec 17 16:52:04 2015
New Revision: 231778

URL: https://gcc.gnu.org/viewcvs?rev=231778&root=gcc&view=rev
Log:
        PR c++/67576

        PR c++/25466
        * rtti.c (build_typeid): Use save_expr, not stabilize_reference.

Added:
    branches/gcc-5-branch/gcc/testsuite/g++.dg/rtti/typeid11.C
Modified:
    branches/gcc-5-branch/gcc/cp/ChangeLog
    branches/gcc-5-branch/gcc/cp/rtti.c


More information about the Gcc-bugs mailing list