This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]