[C++ PATCH] Fix __builtin_constant_p constexpr handling (PR inline-asm/85172)

2018-04-04 Thread Jakub Jelinek
Hi! As the following testcases show, potential_constant_expression_1 for some builtins returns true no matter what their arguments contain (intentionally so); the problem is that we call unconditionally cxx_eval_constant_expression on those arguments and that creates a loophole; normally potential

Re: [C++ PATCH] Fix __builtin_constant_p constexpr handling (PR inline-asm/85172)

2018-04-04 Thread Jason Merrill
OK. On Wed, Apr 4, 2018 at 3:39 PM, Jakub Jelinek wrote: > Hi! > > As the following testcases show, potential_constant_expression_1 for some > builtins returns true no matter what their arguments contain (intentionally > so); the problem is that we call unconditionally > cxx_eval_constant_express