public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/45332] Generate clear diagnostics when a terminating semicolon is missing from a class member declaration.
       [not found] <bug-45332-4@http.gcc.gnu.org/bugzilla/>
@ 2010-11-06 18:42 ` froydnj at gcc dot gnu.org
  2010-12-07 14:37 ` froydnj at gcc dot gnu.org
  1 sibling, 0 replies; 2+ messages in thread
From: froydnj at gcc dot gnu.org @ 2010-11-06 18:42 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45332

--- Comment #1 from Nathan Froyd <froydnj at gcc dot gnu.org> 2010-11-06 18:42:08 UTC ---
Author: froydnj
Date: Sat Nov  6 18:41:57 2010
New Revision: 166406

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166406
Log:
gcc/cp/
    PR c++/45332
    * parser.c (cp_lexer_previous_token): New function.
    (cp_parser_member_declaration): Use previous token for error
    messages.  Assume semicolon presence rather than grovelling for
    the next one.

gcc/testsuite/
    PR c++/45332
    * g++.dg/parse/semicolon2.C: New testcase.
    * g++.dg/ext/asmspec1.C: Adjust.
    * g++.dg/init/new13.C: Adjust.
    * g++.dg/parse/ctor5.C: Adjust.


Added:
    trunk/gcc/testsuite/g++.dg/parse/semicolon2.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/ext/asmspec1.C
    trunk/gcc/testsuite/g++.dg/init/new13.C
    trunk/gcc/testsuite/g++.dg/parse/ctor5.C


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug c++/45332] Generate clear diagnostics when a terminating semicolon is missing from a class member declaration.
       [not found] <bug-45332-4@http.gcc.gnu.org/bugzilla/>
  2010-11-06 18:42 ` [Bug c++/45332] Generate clear diagnostics when a terminating semicolon is missing from a class member declaration froydnj at gcc dot gnu.org
@ 2010-12-07 14:37 ` froydnj at gcc dot gnu.org
  1 sibling, 0 replies; 2+ messages in thread
From: froydnj at gcc dot gnu.org @ 2010-12-07 14:37 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45332

Nathan Froyd <froydnj at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |froydnj at gcc dot gnu.org
         Resolution|                            |FIXED

--- Comment #2 from Nathan Froyd <froydnj at gcc dot gnu.org> 2010-12-07 14:37:03 UTC ---
Fixed.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-12-07 14:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-45332-4@http.gcc.gnu.org/bugzilla/>
2010-11-06 18:42 ` [Bug c++/45332] Generate clear diagnostics when a terminating semicolon is missing from a class member declaration froydnj at gcc dot gnu.org
2010-12-07 14:37 ` froydnj at gcc dot gnu.org

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).