On 08/07/2013 06:06 AM, Marek Polacek wrote:
I might've misunderstood what you mean. If we drop the hunk above, then we'll call error ("%q+E is not a constant expression", t); so, we'll print "is not a constant expression" no matter what
Yes, that's fine; 1/0 is not a constant expression, because it has undefined behavior.
we surely can recognize the ubsan built-ins in dump_expr, but what would we do then?
Print something more meaningful to the user. Jason