r261915 - in /branches/gcc-7-branch/gcc: cp/Cha...
jakub@gcc.gnu.org
jakub@gcc.gnu.org
Fri Jun 22 20:32:00 GMT 2018
Author: jakub
Date: Fri Jun 22 20:32:15 2018
New Revision: 261915
URL: https://gcc.gnu.org/viewcvs?rev=261915&root=gcc&view=rev
Log:
Backported from mainline
2018-03-08 Jason Merrill <jason@redhat.com>
Jakub Jelinek <jakub@redhat.com>
PR c++/80598
* call.c (build_over_call): In templates set TREE_USED (first_fn) when
not calling mark_used for the benefit of -Wunused-function warning.
* g++.dg/warn/Wunused-function4.C: New test.
Added:
branches/gcc-7-branch/gcc/testsuite/g++.dg/warn/Wunused-function4.C
Modified:
branches/gcc-7-branch/gcc/cp/ChangeLog
branches/gcc-7-branch/gcc/cp/call.c
branches/gcc-7-branch/gcc/testsuite/ChangeLog
More information about the Gcc-cvs
mailing list