Strange problem with msvc in kdepimlibs/kcal

Alexander Petrov zowers at
Fri Jul 21 23:42:01 BST 2006

Hi, there
On 21 July 2006 10:05 Christian Ehrlicher wrote:
> The output with gcc:
> D - Recurrence::Observer::Observer()

> and msvc:
> A - RecurrenceRule::Observer::Observer
> As you can see, different constructors are called.
> In my understanding, both of them are correct. But I don't know what the
> c++ standard says about such an ambiguity.

Recurrence::Observer class name hides inherited 
RecurrenceRule::Observer::Observer() name, so gcc is definetly right and msvc 
is wrong.

> Any ideas how this could be solved without renaming one of the classes?

try virtual inheritance

> Christian

BR. Alexander 'zowers' Petrov.    jabber:zowers at    icq:69694782    mailto:zowers at
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <>

More information about the kde-core-devel mailing list