[Bug c++/58325] [4.7/4.8/4.9 Regression] Spurious unused-but-set-variable warning on delete[] of volatile pointer
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Sep 9 17:12:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58325
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Sep 9 17:12:50 2013
New Revision: 202412
URL: http://gcc.gnu.org/viewcvs?rev=202412&root=gcc&view=rev
Log:
PR c++/58325
* init.c (build_vec_delete): Call mark_rvalue_use on base.
* g++.dg/warn/Wunused-var-21.C: New test.
Added:
branches/gcc-4_8-branch/gcc/testsuite/g++.dg/warn/Wunused-var-21.C
Modified:
branches/gcc-4_8-branch/gcc/cp/ChangeLog
branches/gcc-4_8-branch/gcc/cp/init.c
branches/gcc-4_8-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list