]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Remove dg-error that no longer happens
authorJonathan Wakely <jwakely@redhat.com>
Thu, 25 Nov 2021 22:54:07 +0000 (22:54 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 25 Nov 2021 23:12:15 +0000 (23:12 +0000)
There was a c++11_only dg-error in this testcase, for a "body of
constexpr function is not a return statement" diagnostic that was bogus,
but happened because the return statement was ill-formed. A change to
G++ earlier this month means that diagnostic is no longer emitted, so
remove the dg-error.

libstdc++-v3/ChangeLog:

* testsuite/20_util/tuple/comparison_operators/overloaded2.cc:
Remove dg-error for C++11_only error.

libstdc++-v3/testsuite/20_util/tuple/comparison_operators/overloaded2.cc

index bac16ffd521573ff68c37eb071a6439dcff0aa80..6a7a584c71e9d55700bfd8861b1b1cd691fc1d76 100644 (file)
@@ -52,4 +52,3 @@ auto b = a < a;
 // { dg-error "no match for 'operator<'" "" { target c++20 } 0 }
 // { dg-error "no match for .*_Synth3way|in requirements" "" { target c++20 } 0 }
 // { dg-error "ordered comparison" "" { target c++17_down } 0 }
-// { dg-error "not a return-statement" "" { target c++11_only } 0 }