This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/77825] [7 Regression] return type deduction regression in C++17 mode
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 10 Oct 2016 19:54:37 +0000
- Subject: [Bug c++/77825] [7 Regression] return type deduction regression in C++17 mode
- Auto-submitted: auto-generated
- References: <bug-77825-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77825
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |UNCONFIRMED
CC| |jason at gcc dot gnu.org
Ever confirmed|1 |0
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> ---
This is due to the C++17 constexpr lambda change: previously, we would defer
instantiation of the lambda operator() until EOF, but now we instantiate it
immediately when we call it from y_combinator's operator(). Since we haven't
completed instantiating that function yet, it doesn't have a real return type
yet, so the mutual recursion leads to an error.