]> granicus.if.org Git - clang/commit
In ParseParenDeclarator match "D.setGroupingParens(true);" with another setGroupingPa...
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 7 Oct 2008 10:21:57 +0000 (10:21 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 7 Oct 2008 10:21:57 +0000 (10:21 +0000)
commit3f2a8a0de575b02408384f92914729b7518d4e77
treefc4553aeec4cbc1ca9f8dea5807a6f13723ccc81
parentbb316c5b561a2d8a31ead6800e05ca923a255cb8
In ParseParenDeclarator match "D.setGroupingParens(true);" with another setGroupingParens call after the ')' is parsed.
Fixes this bug:
  int (x)(0); // error, expected function declarator where the '(0)' initializer is

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57241 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Parse/ParseDecl.cpp
test/SemaCXX/direct-initializer.cpp