[PR c++/82710] false positive paren warning

Nathan Sidwell nathan@acm.org
Thu Nov 2 18:24:00 GMT 2017


This patch fixes pr82710, were we erroneously warn on something like:
    friend class_X (::other::name (...));
the parens are needed, otherwise the '::other' is taken to be a 
qualified lookup inside the class_X.

Unfortunately, at the point we can check, we've lost information that 
'::' was used.  So I back off when we see a qualified name there.

nathan
-- 
Nathan Sidwell
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 82710.diff
Type: text/x-patch
Size: 2316 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20171102/7054680e/attachment.bin>


More information about the Gcc-patches mailing list