On Tue, November 11, 2008 5:16 pm, Argiris Kirtzidis wrote:
> Douglas Gregor wrote:
>> Destructors aren't found by name lookup, so the IdentifierResolver
>> never needs to see them. Same thing with conversion functions and
>> constructors.
>
> If the IdentifierResolver can lookup them up as members, it will be
> simpler to handle:
>
> class B {
> public:
>   operator float();
> };
>
> class C : public B {
>   void m() {
>     (this)->~C();
>   }
> };
>
> C get();
>
> void f() {
>   get().~C();
>   get().operator float(); // Note that it finds "operator float" from
> the base class
> }

Yes, this would be easier if the IdentifierResolver contained the
conversion functions.

  - Doug

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to