Movatterモバイル変換


[0]ホーム

URL:


This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 119a. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.

2025-12-20


306. Ambiguity by class name injection

Section:6.5.2  [class.member.lookup]    Status:CD1    Submitter:Clark Nelson    Date:19 Jul 2001

[Voted into WP at April 2005 meeting.]

Is the following well-formed?

    struct A {        struct B { };    };    struct C : public A, public A::B {        B *p;    };
The lookup ofB finds both the structB inAand the injectedB from theA::B base class.Are they the same thing? Does the standard say so?

What if a struct is found along one path and a typedef to thatstruct is found along another path? That should probably be valid,but does the standard say so?

This is resolved byissue 39

February 2004: Moved back to "Review" status becauseissue 39 was moved back to "Review".




[8]ページ先頭

©2009-2026 Movatter.jp