From: Sandra Loosemore Date: Sat, 17 Nov 2018 16:05:45 +0000 (-0500) Subject: re PR c++/4025 (Document use/non-use of -fno-implicit-templates in bootflags) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3337f9bf48a1b6893d0f58a2b4ddad4d3f2c2833;p=gcc.git re PR c++/4025 (Document use/non-use of -fno-implicit-templates in bootflags) 2018-11-17 Sandra Loosemore PR c++/4025 gcc/ * doc/invoke.texi (C++ Dialect Options): Clarify usage of -fno-implicit-templates. From-SVN: r266239 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3392f8f498a..7362f269c1c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-11-17 Sandra Loosemore + + PR c++/4025 + * doc/invoke.texi (C++ Dialect Options): Clarify usage of + -fno-implicit-templates. + 2018-11-17 Jakub Jelinek PR tree-optimization/87546 diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index e93a7367566..db3fa3b9c64 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -2574,6 +2574,9 @@ This option is implied by the strict ISO C++ dialects: @option{-ansi}, @opindex fimplicit-templates Never emit code for non-inline templates that are instantiated implicitly (i.e.@: by use); only emit code for explicit instantiations. +If you use this option, you must take care to structure your code to +include all the necessary explicit instantiations to avoid getting +undefined symbols at link time. @xref{Template Instantiation}, for more information. @item -fno-implicit-inline-templates