diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-03-08 05:28:13 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-03-08 05:28:13 +0000 |
commit | 63d0c62f0a5222c6a8b205d7703bfaa23cb28d27 (patch) | |
tree | eed58ea0402d2c32facb43dbede2512affbfe906 /libstdc++-v3 | |
parent | eed3fb17feddf8942693ba720aa0c2cb96cb7bd0 (diff) | |
download | gcc-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')
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/20_util/ratio/cons/cons_overflow_neg.cc | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 3d32dec46a1..44c87bece9f 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2011-03-07 Jason Merrill <jason@redhat.com> + + * testsuite/20_util/ratio/cons/cons_overflow_neg.cc: Adjust + expected errors. + 2011-03-07 Benjamin Kosnik <bkoz@redhat.com> Matthias Klose <doko@ubuntu.com> Jonathan Wakely <redi@gcc.gnu.org> 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 } |