Re: [C++ PATCH] Fix -Wunused-* regression (PR c++/71442)

2016-06-08 Thread Jason Merrill
OK. Jason

Re: [C++ PATCH] Fix -Wunused-* regression (PR c++/71442)

2016-06-08 Thread Jakub Jelinek
On Tue, Jun 07, 2016 at 05:23:34PM +0200, Jakub Jelinek wrote: > Marek has recently added code to set TREE_USED bits on the elements of > TREE_VEC referenced in SIZEOF_EXPR. > But, as the testcase shows, it can be used on various parameter/argument > packs, some of them have types as elements, othe

[C++ PATCH] Fix -Wunused-* regression (PR c++/71442)

2016-06-07 Thread Jakub Jelinek
Hi! Marek has recently added code to set TREE_USED bits on the elements of TREE_VEC referenced in SIZEOF_EXPR. But, as the testcase shows, it can be used on various parameter/argument packs, some of them have types as elements, others decls. And IMHO we want to set TREE_USED only on the decls list