This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/15872] h8300-hms does not support implicit instantiations of templates
- From: "georg dot blaschke at stud dot informatik dot uni-erlangen dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Jun 2004 16:29:57 -0000
- Subject: [Bug target/15872] h8300-hms does not support implicit instantiations of templates
- References: <20040608105534.15872.georg.blaschke@stud.informatik.uni-erlangen.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From georg dot blaschke at stud dot informatik dot uni-erlangen dot de 2004-06-08 16:29 -------
(In reply to comment #1)
> Confirmed. Note you might want to explicant instantiation the template
instead anyways as most
> embeded targets are not going to support weak symbols at all.
Hm, at least avr and h8300-hms linker are supporting weak symbols.
And the summary is wrong now. Maybe my example wasn't that good.
The error has nothing to do with implicit template instantiaton.
Implicit template instantiation only works for function templates and
means that a function template can be implicitly instatiated by the
parameters of the function.
E.g.
-------------------------------------------
template<class T>
void func(T t){
/*
do stuff
*/
}
..
int i=123
func(i); \\ <- implicit template instatiation with an iteger type
..
-------------------------------------------
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15872