]> granicus.if.org Git - clang/commit
Sema: Don't give attribute alias vars with struct type an init expr
authorDavid Majnemer <david.majnemer@gmail.com>
Sun, 8 Feb 2015 10:55:14 +0000 (10:55 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Sun, 8 Feb 2015 10:55:14 +0000 (10:55 +0000)
commit33947ed22c57e11e7aa88e803bfdd664fe50412f
treed7b8dc631aa3cf2c6b17e291ab7c6094bdac97df
parent41397d283c5fd39b7b6ef2f29d6a0feb4169730b
Sema: Don't give attribute alias vars with struct type an init expr

We'd give the VarDecl a CXXConstructExpr even though it is annotated
with an alias attribute.  This would make us trip over sanity checking
asserts.

This fixes PR22493.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@228523 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDecl.cpp
test/SemaCXX/cxx11-gnu-attrs.cpp