Add comment explaining why -std=c++14 is needed.
authorJonathan Wakely <jwakely@redhat.com>
Wed, 17 Aug 2016 16:09:15 +0000 (17:09 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 17 Aug 2016 16:09:15 +0000 (17:09 +0100)
* testsuite/26_numerics/complex/literals/types.cc: Add comment.

From-SVN: r239543

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/26_numerics/complex/literals/types.cc

index 9241b41fcbc04a31e4bf761adc13c2cb18aa8a0d..d8c5fe377d4eaca9f933ca75b73754788d648a5a 100644 (file)
@@ -1,5 +1,7 @@
 2016-08-17  Jonathan Wakely  <jwakely@redhat.com>
 
+       * 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.
 
index ef48c0dc85e70b49aefcb7bd38768b7224ef1226..ad9b863b79d77e59efc898d0b279dd59e1fbfe37 100644 (file)
@@ -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<float>.
+// { dg-options "-std=c++14" }
 // { dg-do compile }
 
 // Copyright (C) 2013-2016 Free Software Foundation, Inc.