re PR c++/28420 (ICE with "typeid" as template parameter)
authorSimon Martin <simartin@users.sourceforge.net>
Tue, 22 Aug 2006 18:51:40 +0000 (18:51 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 22 Aug 2006 18:51:40 +0000 (14:51 -0400)
commit5e8c38c2de194a8eb5733977325c982838f04390
tree65053aaf4e88e020c6247d06b6b64c2c4f293881
parent8e30dcf34530478bd343bce3771bb0c0f979ed73
re PR c++/28420 (ICE with "typeid" as template parameter)

        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().

From-SVN: r116330
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/g++.dg/template/typeid-template-argument.C [new file with mode: 0644]