From e30c6e0c145c7fb6ed6efc06044a1ee86878dd11 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Wed, 17 Aug 2016 17:09:15 +0100 Subject: [PATCH] Add comment explaining why -std=c++14 is needed. * testsuite/26_numerics/complex/literals/types.cc: Add comment. From-SVN: r239543 --- libstdc++-v3/ChangeLog | 2 ++ libstdc++-v3/testsuite/26_numerics/complex/literals/types.cc | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 9241b41fcbc..d8c5fe377d4 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,7 @@ 2016-08-17 Jonathan Wakely + * testsuite/26_numerics/complex/literals/types.cc: Add comment. + * testsuite/21_strings/basic_string_view/operations/rfind/char/2.cc: Remove duplicate dg-options directive. diff --git a/libstdc++-v3/testsuite/26_numerics/complex/literals/types.cc b/libstdc++-v3/testsuite/26_numerics/complex/literals/types.cc index ef48c0dc85e..ad9b863b79d 100644 --- a/libstdc++-v3/testsuite/26_numerics/complex/literals/types.cc +++ b/libstdc++-v3/testsuite/26_numerics/complex/literals/types.cc @@ -1,4 +1,6 @@ -// { dg-options "-std=c++1y" } +// Use -std=c++14 explicitly, because -std=gnu++14 enables GNU extension for +// complex literals, so 1.0if is __complex__ float not std::complex. +// { dg-options "-std=c++14" } // { dg-do compile } // Copyright (C) 2013-2016 Free Software Foundation, Inc. -- 2.30.2