]> gcc.gnu.org Git - gcc.git/commitdiff
* doc/extend.texi: Mention C++14 library complex suffix.
authorJason Merrill <jason@gcc.gnu.org>
Fri, 1 Dec 2017 21:17:32 +0000 (16:17 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 1 Dec 2017 21:17:32 +0000 (16:17 -0500)
From-SVN: r255339

gcc/doc/extend.texi

index 30f89b09699d32384b996ddd1a3c127cedb3248e..3d5e15c9744132a1feb3ae9270e14645480d1408 100644 (file)
@@ -897,6 +897,10 @@ conforming C library (such as the GNU C Library), and want to construct complex
 constants of floating type, you should include @code{<complex.h>} and
 use the macros @code{I} or @code{_Complex_I} instead.
 
+The ISO C++14 library also defines the @samp{i} suffix, so C++14 code
+that includes the @samp{<complex>} header cannot use @samp{i} for the
+GNU extension.  The @samp{j} suffix still has the GNU meaning.
+
 @cindex @code{__real__} keyword
 @cindex @code{__imag__} keyword
 To extract the real part of a complex-valued expression @var{exp}, write
This page took 0.091911 seconds and 5 git commands to generate.