[Bug c++/80935] [C++1z] incorrect error 'uninitialized variable in constexpr function' when conditionally declaring variable inside lambda inside template class
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Sep 18 18:37:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80935
--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Mon Sep 18 18:36:59 2017
New Revision: 252943
URL: https://gcc.gnu.org/viewcvs?rev=252943&root=gcc&view=rev
Log:
PR c++/80935 - wrong C++17 error with lambda
* decl.c (check_for_uninitialized_const_var): Check
is_instantiation_of_constexpr.
Added:
branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp1z/constexpr-lambda16.C
Modified:
branches/gcc-7-branch/gcc/cp/ChangeLog
branches/gcc-7-branch/gcc/cp/decl.c
More information about the Gcc-bugs
mailing list