+2007-05-18 Daniel Franke <franke.daniel@gmail.com>
+
+ PR fortran/24633
+ * symbol.c (gfc_add_flavor): Add the NAME to error message if
+ available.
+
2007-05-15 Daniel Franke <franke.daniel@gmail.com>
PR fortran/31919
if (where == NULL)
where = &gfc_current_locus;
- gfc_error ("%s attribute conflicts with %s attribute at %L",
- gfc_code2string (flavors, attr->flavor),
- gfc_code2string (flavors, f), where);
+ if (name)
+ gfc_error ("%s attribute of '%s' conflicts with %s attribute at %L",
+ gfc_code2string (flavors, attr->flavor), name,
+ gfc_code2string (flavors, f), where);
+ else
+ gfc_error ("%s attribute conflicts with %s attribute at %L",
+ gfc_code2string (flavors, attr->flavor),
+ gfc_code2string (flavors, f), where);
return FAILURE;
}