Re: relying on static_assert to test constexpr changes

2016-04-28 Thread Martin Sebor
On 04/28/2016 03:54 PM, Andrew Pinski wrote: On Thu, Apr 28, 2016 at 2:49 PM, Martin Sebor wrote: Many GCC tests for constexpr rely on static_assert to verify things work correctly. While testing some changes of my own, I was surprised to find the static_asserts pass even

Re: relying on static_assert to test constexpr changes

2016-04-28 Thread Andrew Pinski
On Thu, Apr 28, 2016 at 2:49 PM, Martin Sebor wrote: > Many GCC tests for constexpr rely on static_assert to verify things > work correctly. While testing some changes of my own, I was surprised > to find the static_asserts pass even though my changes did not (see > below). It

relying on static_assert to test constexpr changes

2016-04-28 Thread Martin Sebor
Many GCC tests for constexpr rely on static_assert to verify things work correctly. While testing some changes of my own, I was surprised to find the static_asserts pass even though my changes did not (see below). It took me a while to realize that, and it took printing the computed constant