public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug middle-end/90302] Implement __builtin_warning [not found] <bug-90302-4@http.gcc.gnu.org/bugzilla/> @ 2020-05-21 8:35 ` tkoenig at gcc dot gnu.org 2023-05-09 13:18 ` redi at gcc dot gnu.org 1 sibling, 0 replies; 2+ messages in thread From: tkoenig at gcc dot gnu.org @ 2020-05-21 8:35 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90302 --- Comment #4 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- There is a prototype patch by Martin Sebor at https://gcc.gnu.org/pipermail/gcc-patches/2019-October/531812.html ^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug middle-end/90302] Implement __builtin_warning [not found] <bug-90302-4@http.gcc.gnu.org/bugzilla/> 2020-05-21 8:35 ` [Bug middle-end/90302] Implement __builtin_warning tkoenig at gcc dot gnu.org @ 2023-05-09 13:18 ` redi at gcc dot gnu.org 1 sibling, 0 replies; 2+ messages in thread From: redi at gcc dot gnu.org @ 2023-05-09 13:18 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90302 Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |redi at gcc dot gnu.org --- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> --- This would be very useful for the C++ library where we currently have precondition checks that: - abort at runtime if you compile with -D_GLIBCXX_ASSERTIONS, or - fail at compile-time if they are constexpr **and** are actually evaluated during constexpr evaluation The runtime assertions are good, but not enabled by default, and an earlier warning at compile time means the problem can be found sooner. The constexpr errors are good, but don't apply to non-constexpr calls, even if all the arguments are known during compilation. It would be nice to be able to also issue warnings for non-constexpr calls, when compiled without -D_GLIBCXX_ASSERTIONS. ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-05-09 13:18 UTC | newest] Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <bug-90302-4@http.gcc.gnu.org/bugzilla/> 2020-05-21 8:35 ` [Bug middle-end/90302] Implement __builtin_warning tkoenig at gcc dot gnu.org 2023-05-09 13:18 ` redi at gcc dot gnu.org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).