AGPL addresses that by putting code distributed as a web application in the same category as compiled code.
GCC is written specifically to prevent this sort of firewalling of the compiler to prevent it from being plugged into another piece of software and avoid GPL requirements.
Even then there's always the analogue/human loophole I suppose, similar to captcha mechanical turks.