2015-04-20 Andrew Sutton <andrew.n.sutton@gmail.com>
PR65681
* gcc/cp/constraint.cc (tsubst_simple_requirement): Substitute
in a template-processing context to avoid doing full resolution
on types and expressions.
(tsubst_type_requirement): Likewise.
(tsubst_compound_requirement): Likewise.
(tsubst_nested_requirement): Likewise.
* gcc/testsuite/g++.dg/concepts/p465681.C: New.
* gcc/testsuite/g++.dg/concepts/req2.C: Remove check for spurious
diagnostics.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/c++-concepts@222236 138bc75d-0d04-0410-961f-82ee72b054a4