Re: [C++ Patch] PR 56130

2013-08-21 Thread Jason Merrill
OK. Jason

Re: [C++ Patch] PR 56130

2013-08-21 Thread Paolo Carlini
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 sh

[C++ Patch] PR 56130

2013-08-21 Thread Paolo Carlini
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