summaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite/20_util/ratio/cons
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2011-03-08 05:28:13 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2011-03-08 05:28:13 +0000
commit63d0c62f0a5222c6a8b205d7703bfaa23cb28d27 (patch)
treeeed58ea0402d2c32facb43dbede2512affbfe906 /libstdc++-v3/testsuite/20_util/ratio/cons
parenteed3fb17feddf8942693ba720aa0c2cb96cb7bd0 (diff)
downloadgcc-63d0c62f0a5222c6a8b205d7703bfaa23cb28d27.tar.gz
PR c++/48003
* pt.c (convert_nontype_argument): Fix -fpermissive allowing integer overflow. * semantics.c (potential_constant_expression_1): Check TREE_OVERFLOW. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170771 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/testsuite/20_util/ratio/cons')
-rw-r--r--libstdc++-v3/testsuite/20_util/ratio/cons/cons_overflow_neg.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/libstdc++-v3/testsuite/20_util/ratio/cons/cons_overflow_neg.cc b/libstdc++-v3/testsuite/20_util/ratio/cons/cons_overflow_neg.cc
index 51dcdac4b2d..ca91e46c84d 100644
--- a/libstdc++-v3/testsuite/20_util/ratio/cons/cons_overflow_neg.cc
+++ b/libstdc++-v3/testsuite/20_util/ratio/cons/cons_overflow_neg.cc
@@ -51,7 +51,4 @@ test04()
// { dg-error "instantiated from here" "" { target *-*-* } 46 }
// { dg-error "denominator cannot be zero" "" { target *-*-* } 155 }
// { dg-error "out of range" "" { target *-*-* } 156 }
-// { dg-error "non-constant expression" "" { target *-*-* } 61 }
-// { dg-error "overflow in constant expression" "" { target *-*-* } 61 }
-// { dg-error "not a member" "" { target *-*-* } 164 }
-// { dg-error "not a valid template argument" "" { target *-*-* } 166 }
+// { dg-error "overflow in constant expression" "" { target *-*-* } 74 }