Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Is there, somewhere, a freely usable/accessible script, source file, or whatever

ID: 654649 • Letter: I

Question

Is there, somewhere, a freely usable/accessible script, source file, or whatever, that is able to measure the compliance of a given C++ compiler?

The results I dream of would be a global percentage note (or multiple notes, one for each standard, e.g. , c++98, c++11, c++14, etc.), and then detailed tests with "success" or "failure" for each of them.

Background: I had a discussion at work about boost and some challenged compilers. My interlocutor spoke about boost being an academic project, because it won't work in major C++ compilers, and me answering that mentally challenged compilers should not count. Being able to measure with code the actual conformance of a compiler would help both in evaluating the compiler, and discovering the "corner cases" that should be avoided in cross-platform code compiled with them.

Edit: 2013-06-22
Not an answer, but apparently, the C++ committee is working on the subject:

SG10, Feature Test: Clark Nelson (Intel). Investigation into whether and how to standardize a way for portable code to check whether a particular C++ product implements a feature yet, as we continue to extend the standard.

Explanation / Answer

The closest thing I'm aware of is in the context of a specific standard version. Similarly, there are blog posts that contain like content. However, I'm not aware of a de facto or de jure body, test, or test suite that rules on such matters. Even isocpp.org doesn't appear to have conformance resources currently. The closest you can get is probably each vendor's specific conformance charts which is inconsistent at best.

e.g. Clang, GCC, MSVC, Intel

There are really only a few competitive compilers (at least in the x86/x64 space - I assume it's also the case for less popular platforms), but I agree that it would be very nice to have a reference, especially now that the standard is picking up speed.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote