|
|
|
|
|
by subharmonicon
483 days ago
|
|
I’ve spent 30 years working on compilers. They have bugs. Lots of them. With that in mind, the article is correct that the vast majority of issues people think might be a compiler bug are in fact user errors and misunderstanding. My experience actually working with users has been somewhat humorous in the past, including multiple instances of people completely freaking out when they report something that turns out to be a miscompile. I’ve seen people completely freaking out, to the point that they no longer felt that any code could be trusted since it could have been miscompiled in some way. |
|
That said, I think like half the bugs I see get filed against the compiler aren't actually compiler bugs but errors in user code--and this is already using the filter of "took the trouble to file a compiler bug." So it's a pretty good rule of thumb that it's not a compiler bug, unless you understand the compiler rules well enough to articulate why it can't be user error.