[cfe-commits] r58866 - in /cfe/trunk: include/clang/AST/DeclBase.h include/clang/Basic/DiagnosticKinds.def lib/Parse/ParseDecl.cpp lib/Sema/SemaDecl.cpp test/SemaCXX/destructor.cpp

Argiris Kirtzidis akyrtzi at gmail.com
Tue Nov 11 17:16:05 PST 2008

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 {
  operator float();

class C : public B {
  void m() {

C get();

void f() {
  get().operator float(); // Note that it finds "operator float" from 
the base class


More information about the cfe-commits mailing list