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

Richard Smith richard at metafoo.co.uk
Tue Jan 21 13:26:31 PST 2014


LGTM, but CCing Rafael in case he has a better idea of how to attack this.

On Tue, Jan 21, 2014 at 10:23 AM, Nico Rieck <nico.rieck at gmail.com> wrote:

> 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
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140121/8180d7f1/attachment.html>


More information about the cfe-commits mailing list