]> granicus.if.org Git - clang/commit
PR14918: Don't confuse braced-init-lists after template variable declarations
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 15 Jan 2013 06:49:38 +0000 (06:49 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 15 Jan 2013 06:49:38 +0000 (06:49 +0000)
commitd3e723e28848e4d33e58249042ca14df9308d1b9
tree7b8e5644d675c7893872bffc82b99d16f9f2e265
parent50a70cd11801fd9a700d06e447095249c34c261f
PR14918: Don't confuse braced-init-lists after template variable declarations
with function definitions.

We really should remove Parser::isDeclarationAfterDeclarator entirely, since
it's meaningless in C++11 (an open brace could be either a function definition
or an initializer, which is what it's trying to differentiate between). The
other caller of it happens to be correct right now...

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172510 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Parse/ParseTemplate.cpp
test/Parser/cxx11-brace-initializers.cpp