diff options
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/semantics.c | 1 | ||||
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/26_numerics/headers/cmath/53503.cc | 21 |
4 files changed, 32 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 7cc173b27f2..5850ff6847d 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2012-05-28 Paolo Carlini <paolo.carlini@oracle.com> + + PR c++/53503 + * semantics.c (potential_constant_expression_1): Handle LTGT_EXPR. + 2012-05-26 Paolo Carlini <paolo.carlini@oracle.com> PR c++/53491 diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index 8b53d277fbd..263ebc27668 100644 --- a/gcc/cp/semantics.c +++ b/gcc/cp/semantics.c @@ -8487,6 +8487,7 @@ potential_constant_expression_1 (tree t, bool want_rval, tsubst_flags_t flags) case UNGT_EXPR: case UNGE_EXPR: case UNEQ_EXPR: + case LTGT_EXPR: case RANGE_EXPR: case COMPLEX_EXPR: want_rval = true; diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 23afda31337..38f7bd92c0f 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2012-05-28 Paolo Carlini <paolo.carlini@oracle.com> + + PR c++/53503 + * testsuite/26_numerics/headers/cmath/53503.cc: New. + 2012-05-22 Dodji Seketeli <dodji@redhat.com> PR c++/53322 diff --git a/libstdc++-v3/testsuite/26_numerics/headers/cmath/53503.cc b/libstdc++-v3/testsuite/26_numerics/headers/cmath/53503.cc new file mode 100644 index 00000000000..b55dcb0c4a2 --- /dev/null +++ b/libstdc++-v3/testsuite/26_numerics/headers/cmath/53503.cc @@ -0,0 +1,21 @@ +// { dg-options "-std=gnu++11 -fno-trapping-math" } +// { dg-do compile } + +// Copyright (C) 2012 Free Software Foundation, Inc. +// +// This file is part of the GNU ISO C++ Library. This library is free +// software; you can redistribute it and/or modify it under the +// terms of the GNU General Public License as published by the +// Free Software Foundation; either version 3, or (at your option) +// any later version. + +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License along +// with this library; see the file COPYING3. If not see +// <http://www.gnu.org/licenses/>. + +#include <cmath> |