"Andre Vieira (lists)" <andre.simoesdiasvie...@arm.com> writes: > On 08/04/2022 08:04, Richard Sandiford wrote: >> I think this would be better as a static assert at the top level: >> >> static_assert (TARGET_CPU_generic < TARGET_CPU_MASK, >> "TARGET_CPU_NBITS is big enough"); > The motivation being that you want this to be checked regardless of > whether we are using CHECKING_P?
Yeah, that's one reason. Others are that static_asserts are caught at the earliest possible moment (as a build failure) and that they don't require any object code. Thanks, Richard