/cp
2011-02-22 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/47242
* semantics.c (build_lambda_object): Bail out if a field is
error_mark_node.
/testsuite
2011-02-22 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/47242
* g++.dg/cpp0x/lambda/lambda-ice4.C: New.
From-SVN: r170423
+2011-02-22 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/47242
+ * semantics.c (build_lambda_object): Bail out if a field is
+ error_mark_node.
+
2011-02-22 Dodji Seketeli <dodji@redhat.com>
PR c++/47666
tree field = TREE_PURPOSE (node);
tree val = TREE_VALUE (node);
+ if (field == error_mark_node)
+ {
+ expr = error_mark_node;
+ goto out;
+ }
+
if (DECL_P (val))
mark_used (val);
expr = finish_compound_literal (type, expr);
CLASSTYPE_NON_AGGREGATE (type) = 1;
+ out:
input_location = saved_loc;
return expr;
}
+2011-02-22 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/47242
+ * g++.dg/cpp0x/lambda/lambda-ice4.C: New.
+
2011-02-23 Jie Zhang <jie@codesourcery.com>
PR rtl-optimization/47763
PR objc/47784
* objc.dg/property/dotsyntax-22.m: New.
* obj-c++.dg/property/dotsyntax-22.mm: New.
-
+
2011-02-20 Dodji Seketeli <dodji@redhat.com>
PR c++/46394
--- /dev/null
+// PR c++/47242
+// { dg-options "-std=c++0x" }
+
+template < typename > void
+bar ()
+{
+ [i]{}; // { dg-error "declared|invalid" }
+}
+
+void
+foo ()
+{
+ bar<int>();
+}