https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63657
--- Comment #1 from petschy at gmail dot com --- Bisected the regression: commit a8b52ce38f3056e464457ba1e95efa25a8f08d07 Author: paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> Date: Wed Jun 12 21:36:36 2013 +0000 /cp 2013-06-12 Paolo Carlini <paolo.carl...@oracle.com> PR c++/38958 * decl.c (poplevel): For the benefit of -Wunused-variable see through references. /testsuite 2013-06-12 Paolo Carlini <paolo.carl...@oracle.com> PR c++/38958 * g++.dg/warn/Wunused-var-20.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@200042 138bc75d-0d04-0410-961f-82ee72b054a4