2014-03-07 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/58609
* decl.c (check_initializer): Return NULL_TREE after error;
consistently use inform.
/testsuite
2014-03-07 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/58609
* g++.dg/cpp0x/constexpr-ice12.C: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208410
138bc75d-0d04-0410-961f-
82ee72b054a4
2014-03-07 Paolo Carlini <paolo.carlini@oracle.com>
+ PR c++/58609
+ * decl.c (check_initializer): Return NULL_TREE after error;
+ consistently use inform.
+
+2014-03-07 Paolo Carlini <paolo.carlini@oracle.com>
+
* decl.c (check_initializer): Remove dead code.
2014-03-06 Marek Polacek <polacek@redhat.com>
"member %qD", decl);
if (!explained)
{
- error ("(an out of class initialization is required)");
+ inform (input_location,
+ "(an out of class initialization is required)");
explained = 1;
}
+ return NULL_TREE;
}
return init_code;
+2014-03-07 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/58609
+ * g++.dg/cpp0x/constexpr-ice12.C: New.
+
2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
* c-c++-common/gomp/map-1.c: Extend.
--- /dev/null
+// PR c++/58609
+// { dg-do compile { target c++11 } }
+
+struct A
+{
+ static constexpr int&& i = 0; // { dg-error "initialization" }
+};
+
+int j = A::i;