2011-09-07 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/50309
* decl.c (grokdeclarator): Check u.function.exception_specification
for error_mark_node.
/testsuite
2011-09-07 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/50309
* g++.dg/cpp0x/noexcept14.C: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178654
138bc75d-0d04-0410-961f-
82ee72b054a4
+2011-09-07 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/50309
+ * decl.c (grokdeclarator): Check u.function.exception_specification
+ for error_mark_node.
+
2011-09-07 Jason Merrill <jason@redhat.com>
PR c++/50298
virt_specifiers = declarator->u.function.virt_specifiers;
/* Pick up the exception specifications. */
raises = declarator->u.function.exception_specification;
+ /* If the exception-specification is ill-formed, let's pretend
+ there wasn't one. */
+ if (raises == error_mark_node)
+ raises = NULL_TREE;
/* Say it's a definition only for the CALL_EXPR
closest to the identifier. */
+2011-09-07 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/50309
+ * g++.dg/cpp0x/noexcept14.C: New.
+
2011-09-07 Jason Merrill <jason@redhat.com>
* g++.dg/cpp0x/constexpr-ref3.C: New.
* g++.dg/cpp0x/sfinae11.C: Check for explanatory diagnostic.
2011-09-07 Georg-Johann Lay <avr@gjlay.de>
-
+
* gcc.dg/section1.c: Don't xfail for avr.
-
+
2011-09-07 Georg-Johann Lay <avr@gjlay.de>
PR tree-optimization/50322
--- /dev/null
+// PR c++/50309
+// { dg-options -std=c++0x }
+
+void foo () noexcept () { } // { dg-error "expected" }