[Bug c++/39462] check assert() at compile time if possible

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Jan 8 21:52:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39462

--- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-01-08 21:51:17 UTC ---
(In reply to comment #4)
> Also - I admit not having studied in detail all your requirements, sorry about
> that - I suppose you would be interested in static_assert, available with
> -std=c++0x, in gcc4.3.x (and 4.4.x, of course):
> 
>   http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2004/n1720.html

And static assert is now part of C11 standard. And can be used in 4.7 and above
with _Static_assert keyword.



More information about the Gcc-bugs mailing list