diff options
| author | Craig Jennings <c@cjennings.net> | 2024-04-07 13:41:34 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2024-04-07 13:41:34 -0500 |
| commit | 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 (patch) | |
| tree | f1190704f78f04a2b0b4c977d20fe96a828377f1 /devdocs/gcc~13/backwards-compatibility.html | |
new repository
Diffstat (limited to 'devdocs/gcc~13/backwards-compatibility.html')
| -rw-r--r-- | devdocs/gcc~13/backwards-compatibility.html | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/devdocs/gcc~13/backwards-compatibility.html b/devdocs/gcc~13/backwards-compatibility.html new file mode 100644 index 00000000..0741dcdd --- /dev/null +++ b/devdocs/gcc~13/backwards-compatibility.html @@ -0,0 +1,7 @@ +<div class="section-level-extent" id="Backwards-Compatibility"> <div class="nav-panel"> <p> Previous: <a href="deprecated-features" accesskey="p" rel="prev">Deprecated Features</a>, Up: <a href="c_002b_002b-extensions" accesskey="u" rel="up">Extensions to the C++ Language</a> [<a href="index#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="indices" title="Index" rel="index">Index</a>]</p> </div> <h1 class="section" id="Backwards-Compatibility-1"><span>7.12 Backwards Compatibility<a class="copiable-link" href="#Backwards-Compatibility-1"> ¶</a></span></h1> <p>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. <em class="emph">All such backwards compatibility features are liable to disappear in future versions of G++.</em> They should be considered deprecated. See <a class="xref" href="deprecated-features">Deprecated Features</a>. </p> <dl class="table"> <dt><code class="code">Implicit C language</code></dt> <dd> +<p>Old C system header files did not contain an <code class="code">extern "C" {…}</code> scope to set the language. On such systems, all system header files are implicitly scoped inside a C language scope. Such headers must correctly prototype function argument types, there is no leeway for <code class="code">()</code> to indicate an unspecified set of arguments. </p> </dd> </dl> </div><div class="_attribution"> + <p class="_attribution-p"> + © Free Software Foundation<br>Licensed under the GNU Free Documentation License, Version 1.3.<br> + <a href="https://gcc.gnu.org/onlinedocs/gcc-13.1.0/gcc/Backwards-Compatibility.html" class="_attribution-link">https://gcc.gnu.org/onlinedocs/gcc-13.1.0/gcc/Backwards-Compatibility.html</a> + </p> +</div> |
