Commit a5bfbcc8 by Marek Polacek Committed by Marek Polacek

re PR c++/87425 (ICE with virtual assignment operator)

	PR c++/87425
	* g++.dg/cpp2a/constexpr-virtual12.C: New test.

From-SVN: r264581
parent 69deaf14
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
......
// 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; }
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment