[C++-sig] Pyste - wrong code generation - maybe

Nicodemus nicodemus at globalite.com.br
Fri Aug 29 01:29:15 CEST 2003


Roman Yakovenko wrote:

>Hi. I use Pyste from CVS. I use VC++ 6.0, SP5
>
>The following code produce error on my machine.
>( Pyste generates code like this on generating wrappers (in my case). )
>
>I don't know whether it ligal error from compiler or not.
>I think Dave Abrahams will give the answer in a second.
>If this legal error then we need to fix pyste.
>Also I think I can try to fix this.
>
>
>namespace ns
>{
>
>class A
>{
>public:
>    virtual int s(){ return 1; }
>
>};
>
>}
>
>class B : public ns::A
>{
>public:
>    virtual int s()
>    { return ns::A::s(); } //<-- error must be A::s 
>};
>  
>

Works fine for me with Intel C++ 6. I think it is a bug with VC 6, 
because the code seems legal. I'm sure Dave can supply more info.

Regards,
Nicodemus.





More information about the Cplusplus-sig mailing list