[Bug target/15872] h8300-hms does not support implicit instantiations of templates

georg dot blaschke at stud dot informatik dot uni-erlangen dot de gcc-bugzilla@gcc.gnu.org
Tue Jun 8 16:29:00 GMT 2004


------- 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



More information about the Gcc-bugs mailing list