Various small C++ fixes.
commit672871cefb6a271eeb500e6174cb6499df840e5b
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 10 Oct 2017 18:03:56 +0000 (10 18:03 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 10 Oct 2017 18:03:56 +0000 (10 18:03 +0000)
tree1bf0e689567ea8999f123eefeb16494aecc54023
parent8b00166812472a8db192dd64a38b4bf1224e770e
Various small C++ fixes.

* typeck.c (condition_conversion): Assert !processing_template_decl.
* semantics.c (finish_omp_clauses): Don't
fold_build_cleanup_point_expr if processing_template_decl.
(outer_var_p): A temporary can't be from an outer scope.
* pt.c (type_dependent_expression_p): Fix dependency checking of
functions without DECL_TEMPLATE_INFO.
(instantiate_decl): Use lss_copy.
* constexpr.c (is_valid_constexpr_fn): Fix lambdas before C++17.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@253600 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/cp/pt.c
gcc/cp/semantics.c
gcc/cp/typeck.c