diff options
author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-05-28 12:09:01 +0000 |
---|---|---|
committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-05-28 12:09:01 +0000 |
commit | 8d42956b4da1c31fc959facbfea2e343cf93247c (patch) | |
tree | cb7c1ed970af11c777c55dd19801fce2576ca2e6 /gcc | |
parent | 7fb6dd76079e33870e377938d7d20da41ff235ee (diff) | |
download | gcc-8d42956b4da1c31fc959facbfea2e343cf93247c.tar.gz |
gcc/cp
2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/53503
* semantics.c (potential_constant_expression_1): Handle LTGT_EXPR.
libstdc++-v3
2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/53503
* testsuite/26_numerics/headers/cmath/53503.cc: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@187928 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/semantics.c | 1 |
2 files changed, 6 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; |