public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/14136] [4.0 Regression] double error message for typename used as destructor declarator Date: Sat, 27 Nov 2004 02:31:00 -0000 [thread overview] Message-ID: <20041127023118.26357.qmail@sourceware.org> (raw) In-Reply-To: <20040213054710.14136.pinskia@gcc.gnu.org> ------- Additional Comments From reichelt at gcc dot gnu dot org 2004-11-27 02:31 ------- The following patch fixes the error message for me. I haven't done bootstrapping and regtesting, though. Index: parser.c =================================================================== RCS file: /usr/local/gcc/CVS/gcc-cvs/gcc/gcc/cp/parser.c,v retrieving revision 1.276 diff -u -p -r1.276 parser.c --- parser.c 3 Nov 2004 02:48:37 -0000 1.276 +++ parser.c 27 Nov 2004 07:07:14 -0000 @@ -3234,7 +3234,8 @@ cp_parser_unqualified_id (cp_parser* par identifier in the declarator for a destructor declaration. */ if (declarator_p && !DECL_IMPLICIT_TYPEDEF_P (type_decl) - && !DECL_SELF_REFERENCE_P (type_decl)) + && !DECL_SELF_REFERENCE_P (type_decl) + && !cp_parser_committed_to_tentative_parse (parser)) error ("typedef-name %qD used as destructor declarator", type_decl); =================================================================== -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14136
next prev parent reply other threads:[~2004-11-27 2:31 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-02-13 5:47 [Bug c++/14136] New: [3.4?/3.5 " pinskia at gcc dot gnu dot org 2004-02-13 5:47 ` [Bug c++/14136] " pinskia at gcc dot gnu dot org 2004-02-20 12:55 ` [Bug c++/14136] [3.5 " reichelt at gcc dot gnu dot org 2004-02-20 13:27 ` reichelt at gcc dot gnu dot org 2004-02-20 13:43 ` giovannibajo at libero dot it 2004-11-27 0:00 ` [Bug c++/14136] [4.0 " pinskia at gcc dot gnu dot org 2004-11-27 2:31 ` reichelt at gcc dot gnu dot org [this message] 2004-11-30 0:42 ` reichelt at gcc dot gnu dot org 2004-12-02 14:05 ` reichelt at gcc dot gnu dot org 2004-12-15 17:46 ` reichelt at gcc dot gnu dot org 2005-01-03 17:03 ` cvs-commit at gcc dot gnu dot org 2005-01-03 17:04 ` reichelt at gcc dot gnu dot 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=20041127023118.26357.qmail@sourceware.org \ --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).