On Feb 7, 2007, at 1:05 PM, Prabhanjan Kambadur wrote:
I am trying to check if two types are equal
equal, what's that? :-) (That's a joke for the rest of the folks here. See the CANONICAL types work that Doug did recently for some of the more recent email threads.)
One of the types is a struct that is defined under the std namescope. How do I search for a "node" that is a TYPE_DECL of the structure that I want? I would like to search for the TYPE_DECL of "struct foo" in the tree std_node.
This process is called lookup. Glance around at routines like lookup_qualified_name,
Don't be afraid to fire up gdb under emacs, set a breakpoint in the parser for the construct you're interested in, run the sample testcase through it and watch what the compiler does. It'd take you right there.