This is the mail archive of the gcc-patches@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]

Re: eb79


> This is incorrect code, and g++ reports it.

Committed.    Thanx.
RJL

> 
> Martin
> 
> Index: eb79.C
> ===================================================================
> RCS file: /egcs/carton/cvsfiles/egcs/gcc/testsuite/g++.old-deja/g++.robertl/eb79.C,v
> retrieving revision 1.1
> diff -c -p -r1.1 eb79.C
> *** eb79.C	1998/05/27 23:00:36	1.1
> --- eb79.C	1998/05/30 12:33:58
> *************** T max(T a, T b)
> *** 8,14 ****
>   }
>   
>   // Prototypes (enable one or the other)
> ! double max<>(double, double);
>   // int max(int, int);
>   
>   int main()
> --- 8,14 ----
>   }
>   
>   // Prototypes (enable one or the other)
> ! double max<>(double, double);      // ERROR - bogus code
>   // int max(int, int);
>   
>   int main()

-- 
Robert Lipe       http://www.dgii.com/people/robertl       robertl@dgii.com
              (WEB ADDRESS MAY BE TEMPORARILY UNAVAILABLE)




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