public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: "Pop Sébastian" <pop@gauvain.u-strasbg.fr> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, Subject: Re: c++/8067: g++ 3.2 internal error: Segmentation fault Date: Sun, 06 Oct 2002 12:06:00 -0000 [thread overview] Message-ID: <20021006190602.24174.qmail@sources.redhat.com> (raw) The following reply was made to PR c++/8067; it has been noted by GNATS. From: =?iso-8859-1?Q?Pop_S=E9bastian?= <pop@gauvain.u-strasbg.fr> To: Jason Merrill <jason@redhat.com> Cc: Reichelt <reichelt@igpm.rwth-aachen.de>, gcc-gnats@gcc.gnu.org, y_fedor@ciam.ru, gcc-patches@gcc.gnu.org Subject: Re: c++/8067: g++ 3.2 internal error: Segmentation fault Date: Sun, 6 Oct 2002 20:59:50 +0200 Hi Jason, On Tue, Oct 01, 2002 at 10:44:24AM +0100, Jason Merrill wrote: > Thanks, but your patch is just a workaround; the problem is that we think > we're dealing with a variable declared in the for-init-stmt, but we really > aren't. Ok, so we have to teach G++ that __PRETTY_FUNCTION__ is not a local declaration in the FOR_INIT. > Either we need to add more tests to the enclosing if, or we need > to change current_binding_level when pushing __PRETTY_FUNCTION__. > What about the following patch for solving the PR following the first suggestion? Index: decl.c =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/cp/decl.c,v retrieving revision 1.942 diff -d -u -p -r1.942 decl.c --- decl.c 2 Oct 2002 18:46:40 -0000 1.942 +++ decl.c 6 Oct 2002 18:48:16 -0000 @@ -8305,7 +8305,8 @@ cp_finish_decl (decl, init, asmspec_tree if (init) DECL_INITIAL (decl) = init; } - else if (TREE_CODE (CP_DECL_CONTEXT (decl)) == FUNCTION_DECL) + else if (TREE_CODE (CP_DECL_CONTEXT (decl)) == FUNCTION_DECL + && !DECL_PRETTY_FUNCTION_P (decl)) { /* This is a local declaration. */ if (doing_semantic_analysis_p ())
next reply other threads:[~2002-10-06 19:06 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-10-06 12:06 Pop Sébastian [this message] -- strict thread matches above, loose matches on Subject: below -- 2002-10-23 17:14 mmitchel 2002-10-23 15:06 mmitchel 2002-10-07 14:26 Pop Sébastian 2002-10-06 12:16 Gabriel Dos Reis 2002-10-04 11:46 Jason Merrill 2002-09-30 13:06 Pop Sébastian 2002-09-30 10:36 Pop Sébastian 2002-09-30 9:56 Reichelt 2002-09-28 6:32 lerdsuwa 2002-09-27 0:06 y_fedor
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=20021006190602.24174.qmail@sources.redhat.com \ --to=pop@gauvain.u-strasbg.fr \ --cc=gcc-prs@gcc.gnu.org \ --cc=nobody@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).