Commit 1cc6eecd by Jakub Jelinek Committed by Jakub Jelinek

re PR c++/85070 (ICE on C++ code: in lazily_declare_fn, at cp/method.c:2409)

	PR c++/85070
	* g++.dg/cpp0x/pr85070.C: Change effective target for diagnostics from
	c++14_only to c++14.

From-SVN: r265052
parent cbd8652b
2018-10-11 Jakub Jelinek <jakub@redhat.com>
PR c++/85070
* g++.dg/cpp0x/pr85070.C: Change effective target for diagnostics from
c++14_only to c++14.
2018-10-11 David Malcolm <dmalcolm@redhat.com>
* lib/multiline.exp (dg-begin-multiline-output): Issue an error if
......
......@@ -4,10 +4,10 @@ struct A;
struct B
{
constexpr A & operator= (const A &); // { dg-warning "used" "" { target c++14_only } }
constexpr A & operator= (const A &); // { dg-warning "used" "" { target c++14 } }
};
struct A : B // { dg-error "cannot be overloaded" "" { target c++14_only } }
struct A : B // { dg-error "cannot be overloaded" "" { target c++14 } }
{
using B::operator=;
} a { a = a };
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