aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/decl.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/fortran/decl.c')
-rw-r--r--gcc/fortran/decl.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/gcc/fortran/decl.c b/gcc/fortran/decl.c
index 67ccfda..6b6203e 100644
--- a/gcc/fortran/decl.c
+++ b/gcc/fortran/decl.c
@@ -2369,7 +2369,16 @@ gfc_match_type_spec (gfc_typespec *ts, int implicit_flag)
m = gfc_match (" type ( %n )", name);
if (m != MATCH_YES)
- return m;
+ {
+ m = gfc_match (" class ( %n )", name);
+ if (m != MATCH_YES)
+ return m;
+ ts->is_class = 1;
+
+ /* TODO: Implement Polymorphism. */
+ gfc_warning ("Polymorphic entities are not yet implemented. "
+ "CLASS will be treated like TYPE at %C");
+ }
ts->type = BT_DERIVED;