This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C++ Patch] PR 56130


Hi again,

On 08/21/2013 03:45 PM, Paolo Carlini wrote:
Hi,

this bug points out that we fail to emit deprecated warnings when references are involved. Turns out that at the end of finish_id_expression the VAR_DECL is wrapped in INDIRECT_REF. The trivial patch below appears to work fine and should be pretty safe in terms of false positives, because the warning is enabled by default.
In fact, since we have an issue with *references* I think using REFERENCES_REF_P, per the below, would be more correct. Lightly tested so far, I'm booting and testing it.

Thanks again,
Paolo.

//////////////////////////

Attachment: patch_56130_2
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]