OSDN Git Service

Fix PR c++/42251
authordodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 11 Dec 2009 12:25:19 +0000 (12:25 +0000)
committerdodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 11 Dec 2009 12:25:19 +0000 (12:25 +0000)
commit62ed126e6a4f6b95a0986b8ae5db9cee9f32a83b
tree47ca36bdaed6504bec92cf44422a699d05be52d4
parentc6ba609cc702dc83848ffcb6fa4a9eecf7f6bd85
Fix PR c++/42251

gcc/cp/ChangeLog:
PR c++/42251
* pt.c (convert_template_argument): Avoid missing folding of SCOPE_REFs.

gcc/testsuite/ChangeLog:
PR c++/42251
* g++.dg/template/const3.C: New test.

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