This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/28420] [4.0/4.1/4.2 regression] ICE with "typeid" as template parameter



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]