summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/cxx-ambig-init-templ.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2014-07-27 05:38:12 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2014-07-27 05:38:12 +0000
commit9303357e73d034b9f22b459f92028583231e8746 (patch)
tree9e2654676404b9b4ee1b6bd7a743a71691896b36 /clang/test/Parser/cxx-ambig-init-templ.cpp
parent4137af286f7f547ee81349da5130e4b155232531 (diff)
downloadbcm5719-llvm-9303357e73d034b9f22b459f92028583231e8746.tar.gz
bcm5719-llvm-9303357e73d034b9f22b459f92028583231e8746.zip
Fix default argument comma disambiguation bug following the 'template' keyword.
llvm-svn: 214051
Diffstat (limited to 'clang/test/Parser/cxx-ambig-init-templ.cpp')
-rw-r--r--clang/test/Parser/cxx-ambig-init-templ.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Parser/cxx-ambig-init-templ.cpp b/clang/test/Parser/cxx-ambig-init-templ.cpp
index ac79f77e152..1f692664137 100644
--- a/clang/test/Parser/cxx-ambig-init-templ.cpp
+++ b/clang/test/Parser/cxx-ambig-init-templ.cpp
@@ -169,3 +169,9 @@ namespace ElaboratedTypeSpecifiers {
enum E {};
};
}
+
+namespace PR20459 {
+ template <typename EncTraits> struct A {
+ void foo(int = EncTraits::template TypeEnc<int, int>::val); // ok
+ };
+}
OpenPOWER on IntegriCloud