]> gcc.gnu.org Git - gcc.git/commit - gcc/cp/constexpr.cc
PR c++/80935 - wrong C++17 error with lambda
authorJason Merrill <jason@redhat.com>
Tue, 29 Aug 2017 19:51:30 +0000 (15:51 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 29 Aug 2017 19:51:30 +0000 (15:51 -0400)
commit5d4e573b28a74218ea9db6b00f50f5e323899e6d
tree8d60fba745a9b87bc0bf687a4dca57ccb6d2fd9a
parent11399477539ec605bd904543163c9e9137395943
PR c++/80935 - wrong C++17 error with lambda

* decl.c (check_for_uninitialized_const_var): Check
is_instantiation_of_constexpr.
* constexpr.c (ensure_literal_type_for_constexpr_object): Check
is_instantiation_of_constexpr.
(potential_constant_expression_1): Check var_in_maybe_constexpr_fn.

From-SVN: r251429
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/cp/decl.c
gcc/testsuite/g++.dg/cpp1z/constexpr-lambda16.C [new file with mode: 0644]
This page took 0.063961 seconds and 5 git commands to generate.