diff options
author | David Blaikie <dblaikie@gmail.com> | 2012-04-06 05:26:43 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2012-04-06 05:26:43 +0000 |
commit | 9df1b963a69dc85a271b3791267e994485e0bfe1 (patch) | |
tree | 1801e09d50213473238f9ebcb7970549d8e92fa0 /test/FixIt/fixit-cxx0x.cpp | |
parent | 7947bb127629faff4897f04e579d80fd0d7f97f0 (diff) |
Restrict fixit for missing 'class' in template template parameters.
Based on Doug's feedback to r153887 this omits the FixIt if the following token
isn't syntactically valid for the context. (not a comma, '...', identifier,
'>', or '>>')
There's a bunch of work to handle the '>>' case, but it makes for a much more
pleasant diagnostic in this case.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154163 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/FixIt/fixit-cxx0x.cpp')
-rw-r--r-- | test/FixIt/fixit-cxx0x.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/FixIt/fixit-cxx0x.cpp b/test/FixIt/fixit-cxx0x.cpp index dfc5c8c561..9e1f737742 100644 --- a/test/FixIt/fixit-cxx0x.cpp +++ b/test/FixIt/fixit-cxx0x.cpp @@ -100,3 +100,7 @@ namespace TestMisplacedEllipsisRecovery { int f = me.f(ifn, kfn); int g = me.g(ifn, kfn); } + +template<template<typename> ...Foo, // expected-error {{template template parameters require 'class' after the parameter list}} + template<template<template<typename>>>> // expected-error 3 {{template template parameters require 'class' after the parameter list}} +void func(); |