* g++.dg/cpp2a/constexpr-virtual12.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@264581
138bc75d-0d04-0410-961f-
82ee72b054a4
+2018-09-25 Marek Polacek <polacek@redhat.com>
+
+ PR c++/87425
+ * g++.dg/cpp2a/constexpr-virtual12.C: New test.
+
2018-09-25 Jakub Jelinek <jakub@redhat.com>
PR c++/87398
--- /dev/null
+// PR c++/87425
+// P1064R0
+// { dg-do compile }
+// { dg-options "-std=c++2a" }
+
+struct A
+{
+ virtual A& operator= (int);
+};
+
+struct B
+{
+ A a;
+ B() { a = 0; }
+};