]> gcc.gnu.org Git - gcc.git/commitdiff
re PR fortran/40949 (FAIL: gfortran.dg/proc_ptr_7.f90)
authorTobias Burnus <burnus@net-b.de>
Tue, 4 Aug 2009 17:35:59 +0000 (19:35 +0200)
committerTobias Burnus <burnus@gcc.gnu.org>
Tue, 4 Aug 2009 17:35:59 +0000 (19:35 +0200)
2009-08-04  Tobias Burnus  <burnus@net-b.de>

        PR fortran/40949
        * trans-types.c (gfc_get_function_type): Fix typelist of
        functions without argument.

From-SVN: r150465

gcc/fortran/ChangeLog
gcc/fortran/trans-types.c

index 540d356366edead75efe001383c3f5855d72830f..5924892e777b56f80c1384d9954226a1c6c55958 100644 (file)
@@ -1,3 +1,9 @@
+2009-08-04  Tobias Burnus  <burnus@net-b.de>
+
+       PR fortran/40949
+       * trans-types.c (gfc_get_function_type): Fix typelist of
+       functions without argument.
+
 2009-08-04  Paul Thomas  <pault@gcc.gnu.org>
 
        PR fortran/40875
index 92373e1b1a2d65eb4602711a676270bd537a865e..5ae9a00517ff416ae24c2d6eeb194ef4074c10a1 100644 (file)
@@ -2324,8 +2324,7 @@ gfc_get_function_type (gfc_symbol * sym)
   while (nstr--)
     typelist = gfc_chainon_list (typelist, gfc_charlen_type_node);
 
-  if (typelist)
-    typelist = gfc_chainon_list (typelist, void_type_node);
+  typelist = gfc_chainon_list (typelist, void_type_node);
 
   if (alternate_return)
     type = integer_type_node;
This page took 0.071144 seconds and 5 git commands to generate.