This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/25466] typeid expression fails to throw bad_typeid according to 5.2.8p2
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 17 Dec 2015 16:52:24 +0000
- Subject: [Bug c++/25466] typeid expression fails to throw bad_typeid according to 5.2.8p2
- Auto-submitted: auto-generated
- References: <bug-25466-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25466
--- Comment #18 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Thu Dec 17 16:51:52 2015
New Revision: 231776
URL: https://gcc.gnu.org/viewcvs?rev=231776&root=gcc&view=rev
Log:
PR c++/67576
PR c++/25466
* rtti.c (build_typeid): Use save_expr, not stabilize_reference.
Added:
trunk/gcc/testsuite/g++.dg/rtti/typeid11.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/rtti.c