From d08ca92ee70c16439adfe903905296a285b83063 Mon Sep 17 00:00:00 2001 From: sandra Date: Sat, 17 Nov 2018 16:05:45 +0000 Subject: [PATCH] 2018-11-17 Sandra Loosemore PR c++/4025 gcc/ * doc/invoke.texi (C++ Dialect Options): Clarify usage of -fno-implicit-templates. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@266239 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 6 ++++++ gcc/doc/invoke.texi | 3 +++ 2 files changed, 9 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3392f8f498a0..7362f269c1cc 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 e93a73675664..db3fa3b9c646 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.47.3