Re: [PATCH] PR c++/29028 - Missed unused warning on using declaration

2012-09-24 Thread Jason Merrill
OK. Jason

Re: [PATCH] PR c++/29028 - Missed unused warning on using declaration

2012-09-21 Thread Gabriel Dos Reis
On Fri, Sep 21, 2012 at 7:58 AM, Dodji Seketeli wrote: > +for (tree d = getdecls (); d; d = TREE_CHAIN (d)) > + { > + /* There are cases where D itself is a TREE_LIST. See in > + push_local_binding where the list of decls returned by > + getdecls is built. */ >

[PATCH] PR c++/29028 - Missed unused warning on using declaration

2012-09-21 Thread Dodji Seketeli
Hello, In the example of the patch, g++ fails to warn that the variable N::i (introduced via a using declaration) is unused. This is because as we want to emit the warning in poplevel, when we walk the local bindings returned by getdecls, we forget that a VAR_DECL introduced by a using declaratio