Now that there is a definitive ISO standard C++, G++ has a specification to adhere to. The C++ language evolved over time, and features that used to be acceptable in previous drafts of the standard, such as the ARM [Annotated C++ Reference Manual], are no longer accepted. In order to allow compilation of C++ written to such drafts, G++ contains some backwards compatibilities. All such backwards compatibility features are liable to disappear in future versions of G++. They should be considered deprecated. See Deprecated Features.
For scope
Implicit C language
extern "C" {...}
scope to set the language. On such systems, all header files are implicitly scoped inside a C language scope. Also, an empty prototype ()
is treated as an unspecified number of arguments, rather than no arguments, as C++ demands.
© Free Software Foundation
Licensed under the GNU Free Documentation License, Version 1.3.
https://gcc.gnu.org/onlinedocs/gcc-4.9.3/gcc/Backwards-Compatibility.html