This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: In pt.c, find_parameter_packs_r, should TYPE_P(t) assure TYPE_CONTEXT(t)?


On 08/03/2009 08:32 AM, Larry Evans wrote:
While trying to track down the cause of:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40092

I encountered what may be an error. In pt.c around
line 2493, there's this:

if (TYPE_P (t) )
cp_walk_tree (&TYPE_CONTEXT (t), &find_parameter_packs_r, ppd, ppd->visited);

However, gdb shows TYPE_CONTEXT(t) is the constant, 0, during compile of src.cpp:

That's not a problem; if the tree passed to walk_tree_1 is null, it just returns.


Jason


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]