From 1cc6eecd5d489caa67f04bdd43e5a06c8e3d62d1 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 11 Oct 2018 20:35:11 +0200 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/g++.dg/cpp0x/pr85070.C | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index acac188edfd..4bca601358f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2018-10-11 Jakub Jelinek + + 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 * lib/multiline.exp (dg-begin-multiline-output): Issue an error if diff --git a/gcc/testsuite/g++.dg/cpp0x/pr85070.C b/gcc/testsuite/g++.dg/cpp0x/pr85070.C index c1c5b23fd81..a8b1c5013b6 100644 --- a/gcc/testsuite/g++.dg/cpp0x/pr85070.C +++ b/gcc/testsuite/g++.dg/cpp0x/pr85070.C @@ -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 };