OSDN Git Service

In gcc/objc/:
authornicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 2 Dec 2010 00:25:42 +0000 (00:25 +0000)
committernicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 2 Dec 2010 00:25:42 +0000 (00:25 +0000)
commitdee9f0c70a72f06f373f706d42e9e3cf86778b37
tree075ceadb8e8d3c2b02d0aa82b3fef533ec9e1aa7
parent9a33ff52e1ccfeb83d1ec7d4600b0a4851820cf5
In gcc/objc/:
2010-12-02  Nicola Pero  <nicola.pero@meta-innovation.com>

* objc-act.c (objc_build_throw_stmt): Return error_mark_node and
not NULL_TREE when a @throw is used outside of a @catch block.

In gcc/cp/:
2010-12-02  Nicola Pero  <nicola.pero@meta-innovation.com>

* parser.c (cp_parser_objc_throw_statement): Use
cp_parser_expression, not cp_parser_assignment_expression, to
parse the argument of a @throw.

In gcc/testsuite/:
2010-12-02  Nicola Pero  <nicola.pero@meta-innovation.com>

* objc.dg/exceptions-6.m: New.
* obj-c++.dg/exceptions-6.mm: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167364 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/objc/ChangeLog
gcc/objc/objc-act.c
gcc/testsuite/ChangeLog
gcc/testsuite/obj-c++.dg/exceptions-6.mm [new file with mode: 0644]
gcc/testsuite/objc.dg/exceptions-6.m [new file with mode: 0644]