[Bug c++/70979] [C++14] g++ falsely accepts constexpr function returning a lambda
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri May 6 15:45:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70979
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |accepts-invalid
Status|UNCONFIRMED |NEW
Last reconfirmed| |2016-05-06
CC| |msebor at gcc dot gnu.org
Blocks| |55004
Ever confirmed|0 |1
Known to fail| |5.3.0, 6.1.0
--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirmed. Constexpr functions involving lambdas are not in C++ 14. A
proposal to accept the construct was voted in to the next version of the
language, C++ 17, at the last C++ meeting (P0170R1 -
https://isocpp.org/files/papers/P0170R1.pdf). G++ is ahead of the game on this
feature but it should either disable it or diagnose it with a warning in C++ 14
mode.
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55004
[Bug 55004] [meta-bug] constexpr issues
More information about the Gcc-bugs
mailing list