Re: Template type bug

2008-07-01 Thread Etienne Grossmann
void instantiateMaxFunctions () { max((int)0, (int)0); max((double)0.0, (double)0.0); } and this seems to work. Is this a preferred way of instantiating a template? Best regards, Etienne On Tue, Jul 1, 2008 at 9:14 AM, Etienne Grossmann <[EMAIL PROTECTED]> wrote: > H

Re: Template type bug

2008-07-01 Thread Etienne Grossmann
ouble)" be in the object file A.o. With "int", this works, but this fails with "double" and this is why I sent the bug report. I can also instantiate the templates by putting in A.cpp a function void instantiateMaxFunctions () { } On Mon, Jun 30, 2008 at 9:41

Template type bug

2008-06-30 Thread Etienne Grossmann
Hello, I do not have a login to submit a bug via bugzilla, so I use the second method in http://gcc.gnu.org/bugs.html#where and attach all the required info. In short, compiling w/ g++-4.3 == template Comparable max (Comparable x, Comparable y) {