[gcc r14-12057] libstdc++: Fix FAIL: 20_util/ratio/operations/ops_overflow_neg.cc [PR122168]
Jonathan Wakely
redi@gcc.gnu.org
Mon Oct 6 11:18:46 GMT 2025
https://gcc.gnu.org/g:0bb897ac9fd455124dc7e592655afbd933445e63
commit r14-12057-g0bb897ac9fd455124dc7e592655afbd933445e63
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Mon Oct 6 12:16:37 2025 +0100
libstdc++: Fix FAIL: 20_util/ratio/operations/ops_overflow_neg.cc [PR122168]
This backports the additional dg-error added by r15-3859-g63a598deb0c9fc
which is now also needed on gcc-14 due to r14-12048-g9c3777e9619ad3
having been backported.
libstdc++-v3/ChangeLog:
PR libstdc++/122168
* testsuite/20_util/ratio/operations/ops_overflow_neg.cc: Add
dg-error for additional error seen with -Wsystem-headers.
Diff:
---
libstdc++-v3/testsuite/20_util/ratio/operations/ops_overflow_neg.cc | 1 +
1 file changed, 1 insertion(+)
diff --git a/libstdc++-v3/testsuite/20_util/ratio/operations/ops_overflow_neg.cc b/libstdc++-v3/testsuite/20_util/ratio/operations/ops_overflow_neg.cc
index ced900bd4727..6d80793fb968 100644
--- a/libstdc++-v3/testsuite/20_util/ratio/operations/ops_overflow_neg.cc
+++ b/libstdc++-v3/testsuite/20_util/ratio/operations/ops_overflow_neg.cc
@@ -48,5 +48,6 @@ test02()
// { dg-error "overflow in multiplication" "" { target *-*-* } 105 }
// { dg-error "overflow in constant expression" "" { target *-*-* } 0 }
// { dg-error "narrowing conversion" "" { target *-*-* } 0 }
+// { dg-error "overflow in expression" "" { target *-*-* } 112 }
// { dg-prune-output "out of range" }
// { dg-prune-output "not usable in a constant expression" }
More information about the Libstdc++-cvs
mailing list