Commit Message

Sometimes an expression that is non-constant at one point in the
translation unit can become constant later, when a constexpr function is
defined. So let's not cache failure.
Tested x86_64-pc-linux-gnu, applying to trunk. This isn't a regression,
but as before, since C++11 support is still experimental I consider
patches that fix C++11 bugs and don't affect C++98 code to be acceptable.

Comments

On Tue, Jan 10, 2012 at 8:33 AM, Jason Merrill <jason@redhat.com> wrote:
> Sometimes an expression that is non-constant at one point in the translation> unit can become constant later, when a constexpr function is defined. So> let's not cache failure.>> Tested x86_64-pc-linux-gnu, applying to trunk. This isn't a regression, but> as before, since C++11 support is still experimental I consider patches that> fix C++11 bugs and don't affect C++98 code to be acceptable.
Thanks!
with hindsight, it is "obvious" :-)
-- Gaby