Alright, compiler devs, hackers, programming language designers and standardization folks, and anyone else who wants to play, letβs try something:
π Tell me your favorite bug in a compiler, standard library or programming language below. π
Feel free to repost.
Trying to show something.
Ali Fed Ex: Olaf Curious
2 media files
@patigallardo.bsky.social These were C/C++ compiler bugs:
The "static" keyword was ignored for variables at module scope. Only detected it when I finally encountered a linker error for clashing symbols.
The compiler generated memory addressing modes in the assembly code that was not supported by the assembler, and the assembler silently emitted incorrect machine code.
Iterating over an array that was over a certain size caused the compiler to emit code for the iteration expression twice.
There's been many other bugs mostly related to failing to compile compliant code. Those are usually worked around by shifting things around in some fashion.
The same has been true for Verilog. Things have become better, but in my experience there's usually some forms not supported by various tools. Kind of a pain when the synthesis tool supports one way, but the simulator supports another way.