Hello,
 
     Thanks.
     I wrote that letter in order to discuss this problem.And in CLN-1.2.0,I find many "bugs" like this.  
   
     Alexei Sheplyakov wrote:  
 >It *is* wrong, but [sometimes] it happens to work.
    
    I think so. In my opinion,CLN will be modified with the development of compiler GCC.So I suggest that CLN be updated in standard C++. And this will also improve the possibility of migration from GCC to other Compilers.
                                                                                        
     Best wishes,                                    
                                                                                                                                               XinJian Zhao
                                                                                                                                                            
 
 
2008-04-02

zhaoxinjian

发件人: Alexei Sheplyakov
发送时间: 2008-04-01  15:49:56
收件人: CLN discussion list
抄送:
主题: Re: [CLN-list] const cl_LF operator- (const cl_LF& x,const cl_LF& y)
Hello!
 
On Sat, Mar 29, 2008 at 10:20:00PM +0100, Richard B. Kreckel wrote:
 
> zhaoxinjian wrote:
>  >   I find that the function ( const cl_LF operator- (const cl_LF& x, const cl_LF& y) ) in cl_LF.h and in cl_LF_2mimus.cc is different!
>  >  In cl_LF.h:
>  >  inline const cl_LF operator- (const cl_LF& x, const cl_LF& y)  \
>  > {         \
>  > return LF_LF_minus_LF(x,y);     \
>  > } 
>  > In cl_LF_2mimus.cc :
>  > const cl_LF operator- (const cl_LF& x1, const cl_LF& x2)
>  > { GEN_LF_OP2(x1,x2,LF_LF_minus_LF,return) }
>  > 
>  > }  // namespace cln 
>  > Is it wrong?
 
It is wrong.
 
> And Why?
 
Because it declares the same function to be inline and non-inline, 
which violates the standard (7.1.2.4).
 
> It's not wrong.
 
It *is* wrong, but [sometimes] it happens to work.
 
Best regards,
Alexei
 
-- 
All science is either physics or stamp collecting.
_______________________________________________
CLN-list mailing list
CLN-list@ginac.de
https://www.cebix.net/mailman/listinfo/cln-list