]> granicus.if.org Git - clang/commit
Improve diagnostic for missing comma in template parameter list.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 17 Aug 2018 19:43:40 +0000 (19:43 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 17 Aug 2018 19:43:40 +0000 (19:43 +0000)
commit75af897e99f6b35cf4c97a7388f6387d738e9d5a
tree1b8fea02269ad69c367816d4b300075a82f89d32
parentc912e867c02ee427d751d7636fa3158a432fb8f2
Improve diagnostic for missing comma in template parameter list.

Given 'typename T typename U', we would correctly diagnose the missing
comma, but incorrectly disambiguate the first parameter as being a
non-type parameter and complain that the 'T' is not a qualified-id.

See also gcc.gnu.org/PR86998.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@340074 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Parse/ParseTemplate.cpp
test/CXX/temp/temp.param/p2.cpp