This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: Mention upcoming implementation of DR150


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 &lt;template &lt;typename&gt; class C&gt;
+        void f(C&lt;double&gt;) {}
+ 
+        template &lt;typename T, typename U = int&gt;
+        struct S {};
+ 
+        template void f(S&lt;double&gt;);
+      </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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]