Testing if an expression has side effects at compile time

Tom Tromey tom@tromey.com
Fri Jan 9 16:54:52 GMT 2026


>>>>> "Alejandro" == Alejandro Colomar via Gcc <gcc@gcc.gnu.org> writes:

Alejandro> I'm trying to find a way to verify that an expression (usually passed as
Alejandro> an argument to a macro) has no side effects.  Is this possible?

FWIW there's a bug open about this:

    https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57612

Tom


More information about the Gcc mailing list