]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
doc: document -fimplicit-constexpr
authorJason Merrill <jason@redhat.com>
Wed, 17 Nov 2021 10:45:02 +0000 (05:45 -0500)
committerJason Merrill <jason@redhat.com>
Wed, 17 Nov 2021 17:45:29 +0000 (12:45 -0500)
I forgot this in the implementation patch.

gcc/ChangeLog:

* doc/invoke.texi (C++ Dialect Options): Document
-fimplicit-constexpr.

gcc/doc/invoke.texi

index a22758d18ee4652c3fb0e2e275b635bbb8631bf3..bd6b9f6010cc516e407f45f2ed7eb42864a2cda7 100644 (file)
@@ -3106,6 +3106,13 @@ word as an identifier.  You can use the keyword @code{__typeof__} instead.
 This option is implied by the strict ISO C++ dialects: @option{-ansi},
 @option{-std=c++98}, @option{-std=c++11}, etc.
 
+@item -fimplicit-constexpr
+@opindex fimplicit-constexpr
+Make inline functions implicitly constexpr, if they satisfy the
+requirements for a constexpr function.  This option can be used in
+C++14 mode or later.  This can result in initialization changing from
+dynamic to static and other optimizations.
+
 @item -fno-implicit-templates
 @opindex fno-implicit-templates
 @opindex fimplicit-templates