C++ PATCH to warn about ignored attributes

Jason Merrill jason@redhat.com
Thu Mar 1 19:08:00 GMT 2012


On 02/14/2012 08:50 PM, Jason Merrill wrote:
> While looking at PR 51930, I discovered that we were silently ignoring
> attributes on explicit instantiations; this patch warns about this. This
> isn't exactly a regression, but the submitter ran into it as a result of
> a behavior change in 4.7, and the patch is extremely safe, so I think it
> should go in.

It turns out that we already had a warning for this situation that also 
gives a suggestion for how to deal with it, so I'm going to make that 
warning apply to this case as well.

Tested x86_64-pc-linux-gnu, applying to trunk.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: attr-warn.patch
Type: text/x-patch
Size: 2547 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120301/22e19e52/attachment.bin>


More information about the Gcc-patches mailing list