C++ PATCH for c++/66543 (-Wunused-but-set false positives)
Jason Merrill
jason@redhat.com
Tue Apr 19 19:29:00 GMT 2016
We've been seeing false positives from these warnings in template code
due to uses not making it through into the instantiation:
1) If a pack expansion has no elements
2) If a parameter used in a trailing-return-type is instantiated into a
dummy distinct from the real instantiation
3) If a generic lambda that refers to the decl is never instantiated
Tested x86_64-pc-linux-gnu, applying to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 66543.patch
Type: text/x-patch
Size: 3798 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20160419/efd534be/attachment.bin>
More information about the Gcc-patches
mailing list