From 3337f9bf48a1b6893d0f58a2b4ddad4d3f2c2833 Mon Sep 17 00:00:00 2001 From: Sandra Loosemore Date: Sat, 17 Nov 2018 11:05:45 -0500 Subject: [PATCH] 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 --- gcc/ChangeLog | 6 ++++++ gcc/doc/invoke.texi | 3 +++ 2 files changed, 9 insertions(+) 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 -- 2.30.2