Re: C++ PATCH for c++/51489 (pointer subtraction in constant expression)

2016-03-01 Thread Jason Merrill
On 12/19/2011 12:56 AM, Jason Merrill wrote: DR 1313 removes the blanket prohibition on pointer subtraction in constant expressions and replaces it with a prohibition on operations with undefined behavior, so this testcase ought to work. It wasn't working because our internal representation of p

C++ PATCH for c++/51489 (pointer subtraction in constant expression)

2011-12-18 Thread Jason Merrill
DR 1313 removes the blanket prohibition on pointer subtraction in constant expressions and replaces it with a prohibition on operations with undefined behavior, so this testcase ought to work. It wasn't working because our internal representation of pointer subtraction involves converting the