aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/parser.c
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2009-03-18 14:56:45 +0000
committerH.J. Lu <hjl@gcc.gnu.org>2009-03-18 07:56:45 -0700
commit367bdb8d6b5d4b4dac469c46463976675e9adcb6 (patch)
tree17f05bc8e31416fe9abbddc49d4e73e8ec552ab8 /gcc/cp/parser.c
parent951581723268b48dbf907ae8357e1f0a6e7572aa (diff)
downloadgcc-367bdb8d6b5d4b4dac469c46463976675e9adcb6.zip
gcc-367bdb8d6b5d4b4dac469c46463976675e9adcb6.tar.gz
gcc-367bdb8d6b5d4b4dac469c46463976675e9adcb6.tar.bz2
re PR c++/39425 (gcc loops after reporting template instantiation errors)
gcc/cp/ 2009-03-18 H.J. Lu <hongjiu.lu@intel.com> PR c++/39425 * parser.c (cp_parser_explicit_specialization): Don't skip the rest of the specialization when begin_specialization returns false. gcc/testsuite/ 2009-03-18 H.J. Lu <hongjiu.lu@intel.com> PR c++/39425 * g++.dg/template/pr39425.C: New. * g++.dg/template/spec33.C: Updated. From-SVN: r144932
Diffstat (limited to 'gcc/cp/parser.c')
-rw-r--r--gcc/cp/parser.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c
index 4c6fd4a..7206af2 100644
--- a/gcc/cp/parser.c
+++ b/gcc/cp/parser.c
@@ -10883,7 +10883,6 @@ cp_parser_explicit_specialization (cp_parser* parser)
if (!begin_specialization ())
{
end_specialization ();
- cp_parser_skip_to_end_of_block_or_statement (parser);
return;
}