From: Jonathan Wakely Date: Wed, 17 Aug 2016 16:09:15 +0000 (+0100) Subject: Add comment explaining why -std=c++14 is needed. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e30c6e0c145c7fb6ed6efc06044a1ee86878dd11;p=gcc.git Add comment explaining why -std=c++14 is needed. * testsuite/26_numerics/complex/literals/types.cc: Add comment. From-SVN: r239543 --- 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.