]> granicus.if.org Git - clang/commit
Fixed error recovery if sizeof is used without parenthesis
authorSerge Pavlov <sepavloff@gmail.com>
Wed, 15 Jan 2014 01:53:39 +0000 (01:53 +0000)
committerSerge Pavlov <sepavloff@gmail.com>
Wed, 15 Jan 2014 01:53:39 +0000 (01:53 +0000)
commit44f1206f4304161eb6ea96c9fd000c1e42f932e2
treeb5377df4347c81eee3d5e65bbda98d4876a80fce
parentb13e4cc99ed63a38db9a72b2d84af882ac7172cf
Fixed error recovery if sizeof is used without parenthesis

Changes made in r192200 fixed PR16992, which requested fixit suggesting
parenthesis if sizeof is followed by type-id. However expression in form
T() followed by ')' was incorrectly considered as a type-id if 'T' is
typedef name. This change fixes this case.

Differential Revision: http://llvm-reviews.chandlerc.com/D2440

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199284 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Parse/Parser.h
lib/Parse/ParseExpr.cpp
test/SemaCXX/expressions.cpp