This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/85842] [8/9 Regression] Bogus -Wreturn-type with generic lambda and constexpr if
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 20 May 2018 19:15:31 +0000
- Subject: [Bug c++/85842] [8/9 Regression] Bogus -Wreturn-type with generic lambda and constexpr if
- Auto-submitted: auto-generated
- References: <bug-85842-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85842
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu.org
Known to work| |7.3.0
Summary|Bogus -Wreturn-type with |[8/9 Regression] Bogus
|generic lambda and |-Wreturn-type with generic
|constexpr if |lambda and constexpr if
Known to fail| |8.1.0, 9.0
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Started with r259043
PR c++/85149 - generic lambda and constexpr if.
* pt.c (build_extra_args, add_extra_args): Split from
tsubst_pack_expansion.
(tsubst_expr) [IF_STMT]: Use them.
* cp-tree.h (IF_STMT_EXTRA_ARGS): New.