Home United States USA — software GCC 7.1 Released With Full C++17 Support

GCC 7.1 Released With Full C++17 Support

525
0
SHARE

Last GNU Compiler Collection major release, GCC 7.1, brings substantial new functionality, writes GCC maintainer Jakub Jelinek, including experimental support for the current C++17 draft, better diagnostics, and new optimizations.
Last GNU Compiler Collection major release, GCC 7.1, brings substantial new functionality, writes GCC maintainer Jakub Jelinek, including experimental support for the current C++17 draft, better diagnostics, and new optimizations.
As it is known, GCC stable releases start at x.1, while x.0 is reserved for release candidates, so GCC 7.1 is the first stable release of GCC 7.
As mentioned, the C++ front end in GCC 7.1 brings experimental support for the current C++17 draft, including features such as if constexpr, class template argument deduction, auto template parameters, and structured bindings. Both the -std=c++1z and -std=gnu++1z flags are supported. A list of all new features in the C++ front end is available in the C++ Status page. As InfoQ reported, the ISO C++ committee has recently completed its work on the definition of C++17, which is now only pending approval from the various national bodies of the organization.
GCC 7 also introduces an improved optimizer, with many new intra- and inter-procedural optimizations, such as:
On the diagnostics front, GCC 7.1 brings improved locations, location ranges, suggestions for misspelled identifiers, option names, fix-it hints and new warnings.
Finally, it is worth noting that a few of the changes included in GCC 7.1 will break C++ code that compiles just fine on previous versions. Among the changes that could cause issues are stricter template rules, changes in name mangling conventions for operators, and others.
You can find the complete list of changes in GCC 7.1 in the changelog and download the release from GNU FTP server .

Continue reading...