from Hacker News

Obscure feature + obscure feature + obscure feature = compiler bug

by jonstewart on 9/20/25, 6:41 PM with 10 comments

  • by gipp on 9/23/25, 2:31 PM

    Are anonymous namespaces really that obscure? They're pretty bog-standard where I work, anyway. Don't think I've ever seen a .cc file more than a couple hundred lines that didn't have one for various helper functions.
  • by lzsiga on 9/23/25, 4:26 PM

    I'm sure this article is useful and interesting, but the author lost me at the very first example program, where he wrote `@px++` instead of `(@px)++` (@ stands for asterix character).
  • by yencabulator on 9/23/25, 10:20 PM

    > my takeaway is that you have to do something really, really obscure

    You used to be able to crash gcc by making the first character of a string literal an 8-bit one.