PR c++/45588
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 9 Sep 2010 06:50:56 +0000 (06:50 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 9 Sep 2010 06:50:56 +0000 (06:50 +0000)
commit75b940710fbb05f64630f0b3422e8d5f4dd12ba3
treeb0b38c49c94ce39b461a9dd891042f51b4b4d0a5
parentf9c61ef7079c56ea974db9c5f4bc61e2aabe5f6e
PR c++/45588
* pt.c (tsubst) <case INTEGER_TYPE>: Call mark_rvalue_use
before calling fold_decl_constant_value.

* g++.dg/warn/Wunused-var-15.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164051 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wunused-var-15.C [new file with mode: 0644]