Newer compilers may switch to newer standards by default. For example, gcc6 uses std=gnu++14 by default.
Implements #6211.