https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104187
Aaron Ballman <aaron at aaronballman dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |aaron at aaronballman dot com --- Comment #7 from Aaron Ballman <aaron at aaronballman dot com> --- (In reply to Dávid Bolvanský from comment #5) > So you prefer eg. > > g = a[i] - [[gnu::always_inline]] foo(x, y) + 2 * bar(); To be clear, this syntax isn't valid in either C or C++. There are statement-level attributes, there are not expression-level attributes.