aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran
diff options
context:
space:
mode:
authorJanus Weil <janus@gcc.gnu.org>2011-06-21 14:12:51 +0200
committerJanus Weil <janus@gcc.gnu.org>2011-06-21 14:12:51 +0200
commit95f5c7757f027c4c9afbb97a7a24be0cc9ad7841 (patch)
tree1e279092d6eaef6c4201ec9a6108a9696a0850d8 /gcc/fortran
parent55f01229f008b551dc407c0674657953b3adfb83 (diff)
downloadgcc-95f5c7757f027c4c9afbb97a7a24be0cc9ad7841.zip
gcc-95f5c7757f027c4c9afbb97a7a24be0cc9ad7841.tar.gz
gcc-95f5c7757f027c4c9afbb97a7a24be0cc9ad7841.tar.bz2
re PR fortran/49112 ([OOP] Missing type-bound procedure, "duplicate save" warnings and internal compiler error)
2011-06-21 Janus Weil <janus@gcc.gnu.org> PR fortran/49112 * class.c (gfc_find_derived_vtab): Make vtab and default initialization symbols SAVE_IMPLICIT. 2011-06-21 Janus Weil <janus@gcc.gnu.org> PR fortran/49112 * gfortran.dg/class_44.f03: New. From-SVN: r175257
Diffstat (limited to 'gcc/fortran')
-rw-r--r--gcc/fortran/ChangeLog6
-rw-r--r--gcc/fortran/class.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog
index 2e73625..7d45cd4 100644
--- a/gcc/fortran/ChangeLog
+++ b/gcc/fortran/ChangeLog
@@ -1,3 +1,9 @@
+2011-06-21 Janus Weil <janus@gcc.gnu.org>
+
+ PR fortran/49112
+ * class.c (gfc_find_derived_vtab): Make vtab and default initialization
+ symbols SAVE_IMPLICIT.
+
2011-06-20 Tobias Burnus <burnus@net-b.de>
PR fortran/18918
diff --git a/gcc/fortran/class.c b/gcc/fortran/class.c
index b99930a..572011f 100644
--- a/gcc/fortran/class.c
+++ b/gcc/fortran/class.c
@@ -428,7 +428,7 @@ gfc_find_derived_vtab (gfc_symbol *derived)
&gfc_current_locus) == FAILURE)
goto cleanup;
vtab->attr.target = 1;
- vtab->attr.save = SAVE_EXPLICIT;
+ vtab->attr.save = SAVE_IMPLICIT;
vtab->attr.vtab = 1;
vtab->attr.access = ACCESS_PUBLIC;
gfc_set_sym_referenced (vtab);
@@ -516,7 +516,7 @@ gfc_find_derived_vtab (gfc_symbol *derived)
sprintf (name, "__def_init_%s", tname);
gfc_get_symbol (name, ns, &def_init);
def_init->attr.target = 1;
- def_init->attr.save = SAVE_EXPLICIT;
+ def_init->attr.save = SAVE_IMPLICIT;
def_init->attr.access = ACCESS_PUBLIC;
def_init->attr.flavor = FL_VARIABLE;
gfc_set_sym_referenced (def_init);