2012-11-22 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/55432
* g++.dg/cpp0x/constexpr-55432.C: New.
From-SVN: r193723
+2012-11-22 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/55432
+ * g++.dg/cpp0x/constexpr-55432.C: New.
+
2012-11-21 Janus Weil <janus@gcc.gnu.org>
PR fortran/55352
--- /dev/null
+// PR c++/55432
+// { dg-do compile { target c++11 } }
+
+struct tag_t{} tag{};
+
+constexpr tag_t const& pass(tag_t & t)
+{
+ return t;
+}
+
+struct S
+{
+ constexpr S(tag_t) {};
+};
+
+struct T
+{
+ S mem;
+ T( tag_t & args ) : mem(pass(args)) {}
+};
+
+T t(tag);