This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/69315] [6 Regression] ICE in finish_function with constexpr and templates


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]