public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/94326] g++: error: pack.ii: ‘-fcompare-debug’ failure (length) Date: Thu, 26 Mar 2020 14:05:16 +0000 [thread overview] Message-ID: <bug-94326-4-cv10kwSGzN@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-94326-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94326 --- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- --- gcc/cp/call.c.jj 2020-03-25 08:05:07.153731580 +0100 +++ gcc/cp/call.c 2020-03-26 15:03:42.432909693 +0100 @@ -333,11 +333,14 @@ set_flags_from_callee (tree call) && internal_fn_flags (CALL_EXPR_IFN (call)) & ECF_NOTHROW) nothrow = true; - if (!nothrow && at_function_scope_p () && cfun && cp_function_chain) - cp_function_chain->can_throw = 1; + if (cfun && cp_function_chain && !cp_unevaluated_operand) + { + if (!nothrow && at_function_scope_p ()) + cp_function_chain->can_throw = 1; - if (decl && TREE_THIS_VOLATILE (decl) && cfun && cp_function_chain) - current_function_returns_abnormally = 1; + if (decl && TREE_THIS_VOLATILE (decl)) + current_function_returns_abnormally = 1; + } TREE_NOTHROW (call) = nothrow; } seems to work, but not sure if that is what we want.
next prev parent reply other threads:[~2020-03-26 14:05 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-03-25 13:09 [Bug debug/94326] New: " marxin at gcc dot gnu.org 2020-03-25 13:09 ` [Bug debug/94326] " marxin at gcc dot gnu.org 2020-03-25 15:27 ` marxin at gcc dot gnu.org 2020-03-26 12:30 ` [Bug c++/94326] " jakub at gcc dot gnu.org 2020-03-26 12:31 ` jakub at gcc dot gnu.org 2020-03-26 13:58 ` jakub at gcc dot gnu.org 2020-03-26 14:05 ` jakub at gcc dot gnu.org [this message] 2020-03-27 9:05 ` cvs-commit at gcc dot gnu.org 2020-03-27 20:19 ` jakub at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-94326-4-cv10kwSGzN@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).