https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92236
Andrew Sutton <andrew.n.sutton at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andrew.n.sutton at gmail dot com --- Comment #2 from Andrew Sutton <andrew.n.sutton at gmail dot com> --- This is tricky because the condition reduces to true/false before the static assertion evaluates it. We could introduce a new binary expression that stores the original expression and it's computed value, and use that to hook into diagnostics from the static assert.