* g++.dg/cpp0x/constexpr-92443.C: New test.
From-SVN: r278534
+2019-11-20 Marek Polacek <polacek@redhat.com>
+
+ PR c++/92443
+ * g++.dg/cpp0x/constexpr-92443.C: New test.
+
2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
PR testsuite/92366
--- /dev/null
+// PR c++/92443
+// { dg-do compile { target c++11 } }
+
+struct a {
+ constexpr a(long) : b() {}
+ operator long() const;
+ operator bool();
+ constexpr friend a operator|(a, a c) { return c; }
+ long b;
+};
+using d = a;
+constexpr d e = 6, f = f | e;