This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/28420] [4.0/4.1/4.2 regression] ICE with "typeid" as template parameter
- From: "jason at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Aug 2006 18:51:57 -0000
- Subject: [Bug c++/28420] [4.0/4.1/4.2 regression] ICE with "typeid" as template parameter
- References: <bug-28420-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from jason at gcc dot gnu dot org 2006-08-22 18:51 -------
Subject: Bug 28420
Author: jason
Date: Tue Aug 22 18:51:40 2006
New Revision: 116330
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116330
Log:
PR c++/28420
* parser.c (cp_parser_postfix_expression): Make sure that the
saved value for parser->type_definition_forbidden_message is
restored before returning to avoid an invalid free().
Added:
trunk/gcc/testsuite/g++.dg/template/typeid-template-argument.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28420