8sa1-gcc/gcc/testsuite/g++.dg/cpp2a/constexpr-virtual12.C
Marek Polacek a5bfbcc85c re PR c++/87425 (ICE with virtual assignment operator)
PR c++/87425
	* g++.dg/cpp2a/constexpr-virtual12.C: New test.

From-SVN: r264581
2018-09-25 18:02:47 +00:00

16 lines
163 B
C

// 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; }
};