https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71442
Jakub Jelinek changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71442
--- Comment #6 from Jakub Jelinek ---
Author: jakub
Date: Wed Jun 8 18:05:38 2016
New Revision: 237234
URL: https://gcc.gnu.org/viewcvs?rev=237234=gcc=rev
Log:
PR c++/71442
* pt.c (tsubst_copy): Only set TREE_USED on DECLs.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71442
--- Comment #5 from Jakub Jelinek ---
Author: jakub
Date: Wed Jun 8 18:00:30 2016
New Revision: 237233
URL: https://gcc.gnu.org/viewcvs?rev=237233=gcc=rev
Log:
PR c++/71442
* pt.c (tsubst_copy): Only set TREE_USED on DECLs.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71442
--- Comment #4 from Jakub Jelinek ---
Author: jakub
Date: Wed Jun 8 17:57:30 2016
New Revision: 237232
URL: https://gcc.gnu.org/viewcvs?rev=237232=gcc=rev
Log:
PR c++/71442
* pt.c (tsubst_copy): Only set TREE_USED on DECLs.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71442
--- Comment #3 from Jakub Jelinek ---
Oops, you're right.
But e.g.
// { dg-do compile { target c++11 } }
// { dg-options "-Wunused-variable" }
struct C
{
template
int operator()(Ts &&...)
{
return sizeof...(Ts);
}
};
int
foo ()
{
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71442
Richard Biener changed:
What|Removed |Added
Keywords||diagnostic
--- Comment #2 from Richard
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71442
--- Comment #1 from Jakub Jelinek ---
Created attachment 38655
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38655=edit
gcc7-pr71442.patch
Untested fix.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71442
Jakub Jelinek changed:
What|Removed |Added
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed|