Re: [RFC / Patch] PR 51305

2011-12-21 Thread Paolo Carlini
On 12/21/2011 04:44 PM, Jason Merrill wrote: If reordering works, let's just do that. Sure. Then I'm going to apply the below when re-testing completes. Thanks! Paolo. /// /cp 2011-12-21 Paolo Carlini PR c++/51305 * semantics.c (massage_constexpr_body): Reor

Re: [RFC / Patch] PR 51305

2011-12-21 Thread Jason Merrill
If reordering works, let's just do that. Jason

Re: [RFC / Patch] PR 51305

2011-12-21 Thread Paolo Carlini
Hi again, Hi, this is a rejects-valid with constexpr & noexcept, noticed by Daniel (and myself time ago). I find it pretty annoying. Anyway, the issue is, we reject: constexpr bool ok() noexcept { typedef int type; return true; } constexpr auto x = ok(); because of the noexcept. What h

[RFC / Patch] PR 51305

2011-12-20 Thread Paolo Carlini
Hi, this is a rejects-valid with constexpr & noexcept, noticed by Daniel (and myself time ago). I find it pretty annoying. Anyway, the issue is, we reject: constexpr bool ok() noexcept { typedef int type; return true; } constexpr auto x = ok(); because of the noexcept. What happens is t