KDE/kdelibs/kjs

Peter Kümmel syntheticpp at gmx.net
Mon Feb 20 15:21:50 CET 2006


Dirk Mueller wrote:
> On Monday, 20. February 2006 15:07, Peter Kümmel wrote:
> 
>> And it only compiles with ::creator<C>();
> 
> So this compiles?
> 
> namespace KJS
> {
>     struct C : ::A
>     {
>         friend A* ::creator<C>();
> 
>         A* getAPtr()
>         {
>             return ::creator<C>();
>         }
> 
>     private:
>         C(){}
>     };
> 
> }
> 
> Thats perfect, because thats how it should be. Also compiles with all 
> compilers I have around. 
> 

The corrected test code thus differ only in  "struct : ::A" to the initial.

GCC 3.4 does NOT compile the correct code and I assume
GCC 4.0 not, too (because ::A does not change very much).

You've tested it with 4.1?


Then the new summary is:

Only compiles when :: is ON/OFF

gcc 3.4.4: OFF
gcc 4.0.2: OFF
gcc 4.1  : ON
msvc 8.0 : ON

Peter



More information about the Khtml-devel mailing list