]> granicus.if.org Git - clang/commit
Delay attribute checking until auto types are deduced
authorNico Rieck <nico.rieck@gmail.com>
Tue, 21 Jan 2014 23:54:36 +0000 (23:54 +0000)
committerNico Rieck <nico.rieck@gmail.com>
Tue, 21 Jan 2014 23:54:36 +0000 (23:54 +0000)
commitd7a617aada79c73b283490c6e5699f5ac345d402
treebc55bbb4b77f8458a9ca69fa8ae5606c5dd17ad2
parent8e5a73f4d3d429d0fda24b364d851e7fe32de6a9
Delay attribute checking until auto types are deduced

Checking in ActOnVariableDeclarator computes and caches the linkage using
the non-deduced auto type which defaults to external linkage. Depending on
how the auto type is deduced linkage can change and conflict with the
cached linkage, hitting asserts.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199774 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDecl.cpp
test/SemaCXX/attr-selectany.cpp
test/SemaCXX/attr-weak.cpp
test/SemaCXX/attr-weakref.cpp