aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorPaolo Carlini <paolo.carlini@oracle.com>2012-05-28 12:09:01 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2012-05-28 12:09:01 +0000
commit5d497b05fe68fe4561909a3c1fbfb559e93cc4bb (patch)
treecb7c1ed970af11c777c55dd19801fce2576ca2e6 /libstdc++-v3
parentfa1fd5cefaf82a7dd8c677c41d881aae3edfba6e (diff)
downloadgcc-5d497b05fe68fe4561909a3c1fbfb559e93cc4bb.zip
gcc-5d497b05fe68fe4561909a3c1fbfb559e93cc4bb.tar.gz
gcc-5d497b05fe68fe4561909a3c1fbfb559e93cc4bb.tar.bz2
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
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/ChangeLog5
-rw-r--r--libstdc++-v3/testsuite/26_numerics/headers/cmath/53503.cc21
2 files changed, 26 insertions, 0 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 23afda3..38f7bd9 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 0000000..b55dcb0
--- /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>