This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/69315] [6 Regression] ICE in finish_function with constexpr and templates
- From: "aoliva at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 22 Jan 2016 19:12:26 +0000
- Subject: [Bug c++/69315] [6 Regression] ICE in finish_function with constexpr and templates
- Auto-submitted: auto-generated
- References: <bug-69315-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69315
--- Comment #3 from Alexandre Oliva <aoliva at gcc dot gnu.org> ---
Created attachment 37436
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37436&action=edit
Patch I'm testing to fix the bug
Delayed folding may have to instantiate and evaluate template constexpr
functions. We don't want finish_function to be called recursively in general,
but for this specific case, that's not only acceptable, it's necessary, so deal
with it.