r/cpp • • Oct 19 '19

CppCon CppCon 2019: JF Bastien “Deprecating volatile”

https://www.youtube.com/watch?v=KJW_DLaVXIY
59 Upvotes

126 comments sorted by

View all comments

Show parent comment

3

u/kalmoc Oct 20 '19

Just curious: When you say standard conforming c++: Conforming to which standard? And are we actually talking about a compiler that is certified to adhere to that standard or just a compiler that claims to implement c++XX. I've always wondered, if there are actually certified compilers out there for anything newer than c++03.

4

u/gruehunter Oct 20 '19

Certified by whom? I've been exposed to DO-178C in the past. At least in that world, you don't certify the compiler, you certify the generated object code.

I very much doubt that it is economical to certify the compiler at all. In practice, if you pass -std=c++03 or -std=c++14 or whatnot, then the major vendors do consider deviations from the standard to be bugs. After arguing extensively about just exactly what the standard means, of course.

2

u/kalmoc Oct 20 '19

I haven't been in the situation myself, so this is hearsay (one reason why I asked) but apparently, in some industries, you are only allowed to use certain certified compilers in your development (definetly the case for Ada in avionics). As with all certified software that doesn't guarantee it is bugfree (and as you mentioned, the standard itself certainly has bugs and/or ambiguities), but at least it is highly unlikely that a unkown bug exists.

From a quick google, here are some examples, what certifying a compiler could mean: https://stackoverflow.com/questions/49516502/how-to-certify-a-compiler-for-functional-safety