Various small C++ fixes.
authorJason Merrill <jason@redhat.com>
Tue, 10 Oct 2017 18:03:56 +0000 (14:03 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 10 Oct 2017 18:03:56 +0000 (14:03 -0400)
commite1bea3412a75a300c3866dcf9559c2b796f5b430
tree1bf0e689567ea8999f123eefeb16494aecc54023
parent4d612bfde8ac11bf00c7e52969c0b727cd08f733
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.

From-SVN: r253600
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/cp/pt.c
gcc/cp/semantics.c
gcc/cp/typeck.c