This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: Mention upcoming implementation of DR150
- From: Mark Mitchell <mark at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 7 Feb 2006 08:17:11 -0800
- Subject: PATCH: Mention upcoming implementation of DR150
- Reply-to: mark at codesourcery dot com
This patch for the 4.1 changes file mentions the fact that DR150 will
be implemented in 4.2.
Committed as obvious.
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713
Index: changes.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.1/changes.html,v
retrieving revision 1.11
diff -c -5 -p -r1.11 changes.html
*** changes.html 25 Dec 2005 02:17:37 -0000 1.11
--- changes.html 7 Feb 2006 16:14:35 -0000
***************
*** 176,185 ****
--- 176,207 ----
will not be accepted; instead a declaration of <code>f</code>
will need to be present outside of the scope of
<code>S</code>. The new <code>-ffriend-injection</code>
option will enable the old behavior.</li>
+
+ <li>
+ The (undocumented) extension which permitted templates with
+ default arguments to be bound to template template parameters with
+ fewer parameters has been deprecated, and will be removed in the
+ next major release of G++. For example:
+
+ <pre>
+ template <template <typename> class C>
+ void f(C<double>) {}
+
+ template <typename T, typename U = int>
+ struct S {};
+
+ template void f(S<double>);
+ </pre>
+
+ makes use of the deprecated extension. The reason this code is
+ not valid ISO C++ is that <code>S</code> is a template with two
+ parameters; therefore, it cannot be bound to <code>C</code> which
+ has only one parameter.
+ </li>
</ul>
<h3>Objective-C++</h3>
<ul>
<li>A new language front end for Objective-C++ has been added. This language allows