On 12/16/2011 11:40 AM, Dodji Seketeli wrote:
              /* It's OK to skip a member with a trivial constexpr ctor.
                 A constexpr ctor that isn't trivial should have been
                 added in by now.  */
              gcc_checking_assert (!TYPE_HAS_COMPLEX_DFLT (ftype));

If you think I am trying too hard, maybe I could just get out early
from register_constexpr_fundef if errorcount is non-zero?

Let's just check errorcount in this assert.

[1]:  By the way, I am just curious, why using gcc_checking_assert
instead of just gcc_assert?

In general, I think it makes sense to use gcc_checking_assert for checks that either are expensive, or check conditions that aren't really problematic to deal with if they do occur. But I haven't been particularly methodical about using one or the other.

Jason

Reply via email to