re PR c++/53503 ([C++0x] unexpected AST of kind ltgt_expr)
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. From-SVN: r187928
This commit is contained in:
parent
fa1fd5cefa
commit
5d497b05fe
4 changed files with 32 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
21
libstdc++-v3/testsuite/26_numerics/headers/cmath/53503.cc
Normal file
21
libstdc++-v3/testsuite/26_numerics/headers/cmath/53503.cc
Normal file
|
@ -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>
|
Loading…
Add table
Reference in a new issue