All off topic discussions go here. Everything from the funny thing your cat did to your favorite tv shows. Non-programming computer questions are ok too.
When you see someone doing his first post ever, let's say on StackOverflow, complaining that some code of his segfaults when compiled with optimations enabled...
How would you figure the chances that this newcomer has actually found a bug in the compiler?
Solar wrote:When you see someone doing his first post ever, let's say on StackOverflow, complaining that some code of his segfaults when compiled with optimations enabled...
How would you figure the chances that this newcomer has actually found a bug in the compiler?
I found this... instructive. There is no rule without exception.
I've recently optimized a library. In the process I found a couple of compiler bugs and a kernel bug. Three too many. And I wasn't doing anything special I'd say. Just a few "interesting" coincidences. Things had worked until I hit those.
I found no invalid code generation bugs in GCC so far but I hit 100s of ICEs when writing heavily templated code in GCC.
managarm: Microkernel-based OS capable of running a Wayland desktop (Discord: https://discord.gg/7WB6Ur3). My OS-dev projects: [mlibc: Portable C library for managarm, qword, Linux, Sigma, ...] [LAI: AML interpreter] [xbstrap: Build system for OS distributions].