Patchwork [Fortran] PR39427/37829 - implement F2003's constructors

login
register
mail settings
Submitter Tobias Burnus
Date Nov. 6, 2011, 4:31 p.m.
Message ID <4EB6B67F.4000302@net-b.de>
Download mbox | patch
Permalink /patch/123941/
State New
Headers show

Comments

Tobias Burnus - Nov. 6, 2011, 4:31 p.m.
Am 06.11.2011 17:26, schrieb Tobias Burnus:
> I just realized that my patch email did not come through - however, I 
> did not get any reject email.
>
> Let's try first without patch - it's available at 
> http://users.physik.fu-berlin.de/~tburnus/tmp/constructor.diff

Possibly it is too large - it's below 100 KiBi, but maybe 7bit encoding 
makes it larger? Now gzipped. For the intro text, see: 
http://gcc.gnu.org/ml/fortran/2011-11/msg00055.html

Tobias

Patch

Index: htdocs/gcc-4.7/changes.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.7/changes.html,v
retrieving revision 1.53
diff -u -p -r1.53 changes.html
--- htdocs/gcc-4.7/changes.html	1 Nov 2011 15:15:33 -0000	1.53
+++ htdocs/gcc-4.7/changes.html	6 Nov 2011 15:11:20 -0000
@@ -373,6 +373,14 @@  long double pi = 180_degrees;</pre></blo
       print a backtrace to standard error before aborting. It can be
       disabled with <code>-fno-backtrace</code>. Note: GNU Fortran does
       not support backtracing on all targets.</li>
+    <li>Fortran 2003:
+      <ul>
+       <li>Generic interface name which have the same name as derived types
+         are now supported, which allows to write constructor functions. Note
+         that Fortran does not support static constructor functions; only
+         default initialization or an explicit structure-constructor
+         initialization are available.</li>
+      </ul></li>
     <li>Fortran 2008:
       <ul>
         <li>Support for the <code>DO CONCURRENT</code> construct has been