PR c++/55942
* g++.dg/cpp0x/constexpr-55942.C: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217719
138bc75d-0d04-0410-961f-
82ee72b054a4
+2014-11-18 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/55942
+ * g++.dg/cpp0x/constexpr-55942.C: New.
+
2014-11-18 Marek Polacek <polacek@redhat.com>
PR sanitizer/63866
--- /dev/null
+// PR c++/55942
+// { dg-do compile { target c++11 } }
+
+struct A
+{
+ constexpr explicit A(bool b) : o{flip(b)} { }
+
+ constexpr bool flip(bool b) { return !b; }
+
+ bool o;
+};