⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 deprecated-features.html

📁 gcc手册
💻 HTML
字号:
<html lang="en">

<head>

<title>Using the GNU Compiler Collection (GCC)</title>

<meta http-equiv="Content-Type" content="text/html">

<meta name="description" content="Using the GNU Compiler Collection (GCC)">

<meta name="generator" content="makeinfo 4.3">

<link href="http://www.gnu.org/software/texinfo/" rel="generator-home">

<!--

Copyright &copy; 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998,

1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.



   <p>Permission is granted to copy, distribute and/or modify this document

under the terms of the GNU Free Documentation License, Version 1.2 or

any later version published by the Free Software Foundation; with the

Invariant Sections being "GNU General Public License" and "Funding

Free Software", the Front-Cover texts being (a) (see below), and with

the Back-Cover Texts being (b) (see below).  A copy of the license is

included in the section entitled "GNU Free Documentation License".



   <p>(a) The FSF's Front-Cover Text is:



   <p>A GNU Manual



   <p>(b) The FSF's Back-Cover Text is:



   <p>You have freedom to copy and modify this GNU Manual, like GNU

     software.  Copies published by the Free Software Foundation raise

     funds for GNU development.-->

</head>

<body>

<div class="node">

<p>

Node:<a name="Deprecated%20Features">Deprecated Features</a>,

Next:<a rel="next" accesskey="n" href="Backwards-Compatibility.html#Backwards%20Compatibility">Backwards Compatibility</a>,

Previous:<a rel="previous" accesskey="p" href="Java-Exceptions.html#Java%20Exceptions">Java Exceptions</a>,

Up:<a rel="up" accesskey="u" href="C---Extensions.html#C++%20Extensions">C++ Extensions</a>

<hr><br>

</div>



<h3 class="section">Deprecated Features</h3>



   <p>In the past, the GNU C++ compiler was extended to experiment with new

features, at a time when the C++ language was still evolving.  Now that

the C++ standard is complete, some of those features are superseded by

superior alternatives.  Using the old features might cause a warning in

some cases that the feature will be dropped in the future.  In other

cases, the feature might be gone already.



   <p>While the list below is not exhaustive, it documents some of the options

that are now deprecated:



     <dl>

<dt><code>-fexternal-templates</code>

     <dd><dt><code>-falt-external-templates</code>

     <dd>These are two of the many ways for g++ to implement template

instantiation.  See <a href="Template-Instantiation.html#Template%20Instantiation">Template Instantiation</a>.  The C++ standard clearly

defines how template definitions have to be organized across

implementation units.  g++ has an implicit instantiation mechanism that

should work just fine for standard-conforming code.



     <br><dt><code>-fstrict-prototype</code>

     <dd><dt><code>-fno-strict-prototype</code>

     <dd>Previously it was possible to use an empty prototype parameter list to

indicate an unspecified number of parameters (like C), rather than no

parameters, as C++ demands.  This feature has been removed, except where

it is required for backwards compatibility See <a href="Backwards-Compatibility.html#Backwards%20Compatibility">Backwards Compatibility</a>. 

</dl>



   <p>The named return value extension has been deprecated, and is now

removed from g++.



   <p>The use of initializer lists with new expressions has been deprecated,

and is now removed from g++.



   <p>Floating and complex non-type template parameters have been deprecated,

and are now removed from g++.



   <p>The implicit typename extension has been deprecated and will be removed

from g++ at some point.  In some cases g++ determines that a dependent

type such as <code>TPL&lt;T&gt;::X</code> is a type without needing a

<code>typename</code> keyword, contrary to the standard.



   </body></html>



⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -