public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "froydnj at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/39859] duplicated and unhelpful error for "c:n" (parser) Date: Thu, 16 Dec 2010 01:36:00 -0000 [thread overview] Message-ID: <bug-39859-4-QLOFjH42yN@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-39859-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39859 --- Comment #2 from Nathan Froyd <froydnj at gcc dot gnu.org> 2010-12-16 01:36:15 UTC --- Author: froydnj Date: Thu Dec 16 01:36:09 2010 New Revision: 167895 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=167895 Log: gcc/cp/ PR c++/39859 PR c++/44522 PR c++/44523 * parser.c (struct cp_parser): Add colon_corrects_to_scope_p field. (cp_parser_new): Initialize it. (cp_parser_nested_name_specifier_opt): Auto-correct colons to scopes if we are able to. (cp_parser_question_colon_clause): Disallow colon correction. (cp_parser_label_for_labeled_statement): Likewise. (cp_parser_range_for): Likewise. (cp_parser_enum_specifier): Likewise. (cp_parser_class_head): Likewise. (cp_parser_member_declaration): Likewise. gcc/testsuite/ PR c++/39859 PR c++/44522 PR c++/44523 * g++.dg/parse/colon-autocorrect-1.C: New testcase. * g++.dg/parse/colon-autocorrect-2.C: New testcase. Added: trunk/gcc/testsuite/g++.dg/parse/colon-autocorrect-1.C trunk/gcc/testsuite/g++.dg/parse/colon-autocorrect-2.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/parser.c trunk/gcc/testsuite/ChangeLog
next parent reply other threads:[~2010-12-16 1:36 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <bug-39859-4@http.gcc.gnu.org/bugzilla/> 2010-12-16 1:36 ` froydnj at gcc dot gnu.org [this message] 2011-09-29 5:03 ` paolo.carlini at oracle dot com 2009-04-23 0:41 [Bug c++/39859] New: C++: Duplicated and unhelpful error for "c:n" ian at airs dot com 2009-04-29 13:22 ` [Bug c++/39859] duplicated and unhelpful error for "c:n" (parser) manu 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=bug-39859-4-QLOFjH42yN@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).