[PATCH] [Sema] Delay attribute checking until auto types are deduced

Nico Rieck nico.rieck at gmail.com
Tue Jan 21 10:23:36 PST 2014


This patch delays the call to Sema::checkAttributesAfterMerging to delay
linkage computation. This has already been done once in the past, but
when auto is involved this is not enough and something like the
following crashes:

namespace { class Internal {}; }
__attribute__((weak)) auto f = Internal();


-Nico
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Delay-attribute-checking.patch
Type: text/x-patch
Size: 4410 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140121/eb8dfc1c/attachment.bin>


More information about the cfe-commits mailing list