This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/39462] check assert() at compile time if possible
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 08 Jan 2012 21:51:17 +0000
- Subject: [Bug c++/39462] check assert() at compile time if possible
- Auto-submitted: auto-generated
- References: <bug-39462-4@http.gcc.gnu.org/bugzilla/>
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.