re PR c++/50545 ([C++0x][DR 1172] SFINAE does not handle an explicit type conversion...
authorJason Merrill <jason@redhat.com>
Fri, 31 Aug 2012 02:50:28 +0000 (22:50 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 31 Aug 2012 02:50:28 +0000 (22:50 -0400)
commit2c905502202e55fc91c2a2c9a94c3ef286f52f73
tree037fed94ca2a1f6f563da30fce47620ac45fcd05
parente467c9d25782edea98d2cd66956d5abb82e847e9
re PR c++/50545 ([C++0x][DR 1172] SFINAE does not handle an explicit type conversion (functional notation) with a braced-init-list well if target type is not dependent)

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.

From-SVN: r190830
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]