u/onecable5781in r/Compilers • Recommends
Are C compilers likely to have fewer bugs as compared to C++ compilers?
In this video, link to this video , the author goes into details of how he and his students were able to create a tool that helps uncover compiler bugs (he focuses on C and C++ in particular) by exploiting corner cases.
In general, is it not the case that simpler a language, easier it would be to write a conforming compiler? C++ compilers have to compile C code also (the parts which are carried over into C++) in addition to all the additional features/abstractions C++ builds into it. So, it appears to me that writing a conforming C++ compiler is extraordinarily more difficult (and hence more bugprone?) as compared to a C compiler…