[Dwarf-Discuss] name lookup w/ using directives

Jason Merrill jason at redhat.com
Wed Aug 20 12:19:28 PDT 2008


Kendrick Wong wrote:
> The compiler already knows what the common enclosing namespace is (A in 
> this case),  If this information is made available in DWARF, then the 
> consumer would not need to go through extra effort to obtain this 
> information.

The DWARF has the same nesting information as the source code; the 
consumer can use the same algorithm as the compiler.  I don't think we 
want to encode standard lookup rules in the debugging information; 
better to put that in one place in the debugger rather expand the 
debugging information for every occurrence of a using-declaration.

Jason




More information about the Dwarf-Discuss mailing list