PR c++/50545
commit288dc77b2d56b82ca7872b4b7f126b02d5c771e6
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 31 Aug 2012 02:50:28 +0000 (31 02:50 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 31 Aug 2012 02:50:28 +0000 (31 02:50 +0000)
tree037fed94ca2a1f6f563da30fce47620ac45fcd05
parentd0b4bf064cc775c510f804bee8394067530cc2bb
PR c++/50545
PR c++/51222
* pt.c (instantiation_dependent_r): New.
(instantiation_dependent_expression_p): New.
(value_dependent_expression_p): Use it.  SCOPE_REF is always dependent.
* semantics.c (finish_decltype_type): Use it.
* cp-tree.h: Declare it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@190830 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/pt.c
gcc/cp/semantics.c
gcc/testsuite/g++.dg/cpp0x/decltype40.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/decltype41.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/decltype42.C [new file with mode: 0644]