aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJason Merrill <jason@gcc.gnu.org>2000-05-30 04:47:25 -0400
committerJason Merrill <jason@gcc.gnu.org>2000-05-30 04:47:25 -0400
commit4003d7f9e6aa0de95babda17e0a8c83117b66908 (patch)
treec57a74aefc00909160cb2dfdf0fe0194638c6874 /gcc
parentd3a36404bad193707fbdcf728282f25f076ab5b5 (diff)
downloadgcc-4003d7f9e6aa0de95babda17e0a8c83117b66908.zip
gcc-4003d7f9e6aa0de95babda17e0a8c83117b66908.tar.gz
gcc-4003d7f9e6aa0de95babda17e0a8c83117b66908.tar.bz2
update explicit instantiation docs
From-SVN: r34264
Diffstat (limited to 'gcc')
-rw-r--r--gcc/extend.texi8
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/extend.texi b/gcc/extend.texi
index 65b0ec9..f244f50 100644
--- a/gcc/extend.texi
+++ b/gcc/extend.texi
@@ -3840,12 +3840,16 @@ other files) without having to specify them as well.
g++ has extended the template instantiation syntax outlined in the
Working Paper to allow forward declaration of explicit instantiations
-and instantiation of the compiler support data for a template class
-(i.e. the vtable) without instantiating any of its members:
+(with @code{extern}), instantiation of the compiler support data for a
+template class (i.e. the vtable) without instantiating any of its
+members (with @code{inline}), and instantiation of only the static data
+members of a template class, without the support data or member
+functions (with (@code{static}):
@example
extern template int max (int, int);
inline template class Foo<int>;
+static template class Foo<int>;
@end example
@item