How do I manually instantiate template functions with -fno-implicit-templates

Mark Johnstone markj@ibmoto.com
Tue Jan 6 10:45:00 GMT 1998


Hello,

Using egcs 1.0.X how do I manually instantiate template functions when
I'm using -fno-implicit-templates, now that guiding decls have been
removed?

I used to do something like:

template void foo (bar a, baz b);

But this no longer works with egcs 1.0.X (presumably because the
compiler considers this to be a guiding decl of the template
function) unless I also use -fguiding-decls (which according to the
info page also turns on -fname-mangling-version-0).

Any advice would be appreciated,

-- 

Mark S. Johnstone, Ph.D.  Methodology and Tools Development
markj@ibmoto.com          Networking & Computing Systems Group
                          Somerset Design Center, MD: OE70
(512) 424-8468 (desk)     6200 Bridgepoint Parkway, Bldg. #4, Austin, TX  78730
(512) 933-7333 pin 428468 (pager)



More information about the Gcc mailing list