Re: Template type bug

2008-07-01 Thread Etienne Grossmann
Sorry for the incomplete previous mail, which was spuriously sent... Hello again, a little addition to my previous post: In a non-main c++ file (say A.cpp), I write the code template int max (int x, int y); // OK template double max (double x, double y); // Fails in order to instan

Re: Template type bug

2008-07-01 Thread Etienne Grossmann
Hello again, a little addition to my previous post: In a non-main c++ file (say A.cpp), I write the code template int max (int x, int y); // OK template double max (double x, double y); // Fails in order to instantiate the template, so that the function "double max(double,double)"

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