To be fair, humans editing C++ also go on wild goose chases. Have you seen the insanity the C++ committee has ratified?
Have you read Alexandrescu’s “modern c++”? It’s like a piece of modern art but completely not self aware. There’s just something about C++ that lures intellectuals in; like ice age mammoths to a tar pit.
Small wonder LLMs also fall victims to C++’s deranged ways.