summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseTemplate.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-10-15 01:15:58 +0000
committerDouglas Gregor <dgregor@apple.com>2010-10-15 01:15:58 +0000
commitb048402073561ba28df4db691b0752c4998cc814 (patch)
treea143ce61455dd5ee05319ca850f5cccc447db749 /clang/lib/Parse/ParseTemplate.cpp
parent6db2837f7f51ecb6821b8fe5b2a248abc548c5c7 (diff)
downloadbcm5719-llvm-b048402073561ba28df4db691b0752c4998cc814.tar.gz
bcm5719-llvm-b048402073561ba28df4db691b0752c4998cc814.zip
When we are missing the ',' or '>' to terminate a template parameter
list, complain about it! Fixes PR7053. llvm-svn: 116551
Diffstat (limited to 'clang/lib/Parse/ParseTemplate.cpp')
-rw-r--r--clang/lib/Parse/ParseTemplate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Parse/ParseTemplate.cpp b/clang/lib/Parse/ParseTemplate.cpp
index dfb4785489d..8142cd226b5 100644
--- a/clang/lib/Parse/ParseTemplate.cpp
+++ b/clang/lib/Parse/ParseTemplate.cpp
@@ -337,7 +337,7 @@ Parser::ParseTemplateParameterList(unsigned Depth,
// subsumed by whatever goes on in ParseTemplateParameter.
// TODO: This could match >>, and it would be nice to avoid those
// silly errors with template <vec<T>>.
- // Diag(Tok.getLocation(), diag::err_expected_comma_greater);
+ Diag(Tok.getLocation(), diag::err_expected_comma_greater);
SkipUntil(tok::greater, true, true);
return false;
}
OpenPOWER on IntegriCloud