OSDN Git Service

gcc/cp/
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 Apr 2009 18:56:07 +0000 (18:56 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 Apr 2009 18:56:07 +0000 (18:56 +0000)
commit926c5bafa8a4b416d72d1037755a1bc28d239b70
tree41a2c06b2e7bcda06f34cd914a410620bbd48f89
parent3bf847f36463cbbad5a729b787eaf3a97491833f
gcc/cp/

2009-04-10  Jason Merrill  <jason@redhat.com>

PR c++/28301
* parser.c (cp_parser_skip_to_end_of_block_or_statement): Return
if we see a close brace without an open brace.

gcc/testsuite/

2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>

PR c++/28301
* g++.dg/cpp0x/enum2.C: Updated.
* g++.dg/debug/pr22514.C: Likewise.
* g++.dg/parse/enum2.C: Likewise.
* g++.dg/parse/enum3.C: Likewise.
* g++.dg/template/crash79.C: Likewise.
* g++.old-deja/g++.jason/cond.C: Likewise.

* g++.dg/template/pr28301.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@145936 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/enum2.C
gcc/testsuite/g++.dg/debug/pr22514.C
gcc/testsuite/g++.dg/parse/enum2.C
gcc/testsuite/g++.dg/parse/enum3.C
gcc/testsuite/g++.dg/template/crash79.C
gcc/testsuite/g++.dg/template/pr28301.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.jason/cond.C