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++/81942] ICE on empty constexpr constructor with C++14


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81942

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jose.marchesi at oracle dot com

--- Comment #6 from Paolo Carlini <paolo.carlini at oracle dot com> ---
It would be nice if somebody with a fully functional ARM toolchain could check
whether something like the below at least avoids the ICE without causing any
regressions. I hope it does.

Index: constexpr.c
===================================================================
--- constexpr.c (revision 251553)
+++ constexpr.c (working copy)
@@ -3679,7 +3679,7 @@ breaks (tree *jump_target)
 {
   return *jump_target
     && ((TREE_CODE (*jump_target) == LABEL_DECL
-        && LABEL_DECL_BREAK (*jump_target))
+        && (LABEL_DECL_BREAK (*jump_target) || DECL_ARTIFICIAL
(*jump_target)))
        || TREE_CODE (*jump_target) == EXIT_EXPR);
 }

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