re PR c++/27665 (ICE writing class instead of typename)
authorMark Mitchell <mark@codesourcery.com>
Thu, 15 Jun 2006 03:51:51 +0000 (03:51 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Thu, 15 Jun 2006 03:51:51 +0000 (03:51 +0000)
commit4c4e648c764466b842ddaae513af83f7ac88c21c
treeba762aa5f0e7a8d1e860b417b9479cc9424da79b
parent0c926bff30bcdac2556794048446d7530c6433bf
re PR c++/27665 (ICE writing class instead of typename)

PR c++/27665
* parser.c (cp_parser_unqualified_id): Use constructor_name_p to
identify destructors.
(cp_parser_nested_name_specifier_opt): Remove invalid
optimization.
(cp_parser_template_id): Refine heuristic for determining whether
we are entering a scope.
PR c++/27665
* g++.dg/template/crash52.C: New test.

From-SVN: r114669
gcc/cp/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/crash52.C [new file with mode: 0644]