Looking forward to GCC 7
Looking forward to GCC 7
Posted Apr 13, 2017 8:30 UTC (Thu) by gowen (guest, #23914)In reply to: Looking forward to GCC 7 by lsl
Parent article: Looking forward to GCC 7
Posted Apr 14, 2017 17:17 UTC (Fri)
by lsl (subscriber, #86508)
[Link] (3 responses)
My point is that it's rude to break backwards compatibility. Doubly so when you do it for dubious gain.
Posted Apr 17, 2017 0:10 UTC (Mon)
by zlynx (guest, #2285)
[Link] (2 responses)
You really should be specifying the standard level to the compiler. Anything else results in rude surprises, like when I had to go back and remove a bunch of C++14 code from a project at work to make it compile on older C++11 systems. If the standard had been set, that C++14 code wouldn't have been accepted in the first place.
And why would you want per source file CXXFLAGS? You'd set the -std=c++11 for all compile steps, not just some files.
Posted Apr 17, 2017 12:49 UTC (Mon)
by mathstuf (subscriber, #69389)
[Link]
Posted Apr 18, 2017 20:01 UTC (Tue)
by lsl (subscriber, #86508)
[Link]
The C++ program I occasionally work on (which is only used internally, so we don't have to worry about supporting older compilers) is built with -std=gnu++1[y4] and if there's a benefit to be had, it can be moved to (the GNU variant of) C++17. Sadly, that now also involves the patching of register-emitting code generators. Or maybe not, hoping that GCC won't implement this for GNU C++.
Anyway, pointless breakages like this hinder the adoption of new standards. Until recently, the C++ committee generally seemed pretty thorough in avoiding such gratuitous changes (as are most stewards of mature languages, lest they end up with a Python 3).
Looking forward to GCC 7
Looking forward to GCC 7
Looking forward to GCC 7
Looking forward to GCC 7
