]> granicus.if.org Git - clang/commit
Sema: Only merge typedef attributes if the previous decl is a typedef
authorJustin Bogner <mail@justinbogner.com>
Tue, 8 Oct 2013 00:19:09 +0000 (00:19 +0000)
committerJustin Bogner <mail@justinbogner.com>
Tue, 8 Oct 2013 00:19:09 +0000 (00:19 +0000)
commit2dd68de1bf29993c8c8d7e20a3f230fc9a5a40e8
tree1e5420301dcd93da80de09a515b59b1e8f280b86
parentfeba9f2bdc5711894e452dfc67c9679482fbf897
Sema: Only merge typedef attributes if the previous decl is a typedef

In r186373, we started merging attributes on typedefs, but this causes
us to try to merge attributes even if the previous declaration was not
a typedef.

Only merge the attributes if the previous decl was also a typedef.

Fixes rdar://problem/15044218

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192146 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDecl.cpp
test/SemaCXX/attr-aligned.cpp [new file with mode: 0644]
test/SemaCXX/attr-deprecated.cpp