This is the mail archive of the gcc-patches@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: C++ PATCH for c++/68449 (segv with compound statement)


On 01/08/2016 12:48 PM, Marek Polacek wrote:
  	if (tree *p = ctx->values->get (r))
  	  r = *p;
-      if (DECL_P (r))
+      if (r == NULL_TREE || DECL_P (r))

I think it would be a bit better not to change r if *p is null. OK with that change.

Jason


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