2014-11-18 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/55443
* g++.dg/cpp0x/noexcept26.C: New.
* g++.dg/cpp0x/noexcept27.C: Likewise.
From-SVN: r217711
+2014-11-18 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/55443
+ * g++.dg/cpp0x/noexcept26.C: New.
+ * g++.dg/cpp0x/noexcept27.C: Likewise.
+
2014-11-18 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/60245
--- /dev/null
+// PR c++/55443
+// { dg-do compile { target c++11 } }
+
+struct X
+{
+ constexpr X() { }
+
+ void* operator new(__SIZE_TYPE__, void*) noexcept;
+};
+
+int main() { noexcept(new(0) X); }
--- /dev/null
+// PR c++/55443
+// { dg-do compile { target c++11 } }
+
+struct X
+{
+ X() = default;
+
+ X(int);
+
+ void* operator new(__SIZE_TYPE__, void*) noexcept;
+};
+
+X x;
+
+bool b = noexcept(new(0) X);