16853 – [3.4/4.0 regression] pointer-to-member initialization from incompatible one accepted (original) (raw)

Description Volker Reichelt 2004-08-02 09:13:37 UTC

The following problem is another spin-off from PR 13092 (inspired by Andrei Gaponenko's submission in comment #20). It does compile on 3.4 branch and mainline although it shouldn't:

=========================== struct A {}; struct B {};

int B::* b; int A::* a = b;