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: PR 58834: __builtin_shuffle in a template


On Fri, 1 Nov 2013, Jason Merrill wrote:

On 10/31/2013 07:03 PM, Marc Glisse wrote:
     * pt.c (value_dependent_expression_p): Handle null argument.

What is calling this with a null argument? The recursive call near the end of the function checks for null there.

See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58834 for details. It is build_x_vec_perm_expr that calls it with a null argument (when we call __builtin_shuffle with 2 arguments, it adds a NULL argument in second position). I can make it not call value_dependent_expression_p with a null argument, but it seems more general to let value_dependent_expression_p handle 0 like a number of other functions already do.

--
Marc Glisse


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