Commit b6720768 by Victor Leikehman Committed by Paul Brook

re PR fortran/13249 (Error when using COMMON)

	PR fortran/13249
	* symbol.c (gfc_add_common): Disable checks to work around other more
	fundamental inadequacies.

From-SVN: r82134
parent ae5cbc33
2004-05-22 Victor Leikehman <lei@haifasphere.co.il>
PR fortran/13249
* symbol.c (gfc_add_common): Disable checks to work around other more
fundamental inadequacies.
2004-05-22 Tobias Schlter <tobias.schlueter@physik.uni-muenchen.de> 2004-05-22 Tobias Schlter <tobias.schlueter@physik.uni-muenchen.de>
* trans-decl.c (gfc_get_extern_function_decl): Set DECL_IS_PURE * trans-decl.c (gfc_get_extern_function_decl): Set DECL_IS_PURE
......
...@@ -722,9 +722,13 @@ gfc_add_dummy (symbol_attribute * attr, locus * where) ...@@ -722,9 +722,13 @@ gfc_add_dummy (symbol_attribute * attr, locus * where)
try try
gfc_add_common (symbol_attribute * attr, locus * where) gfc_add_common (symbol_attribute * attr, locus * where)
{ {
/* TODO: We currently add common blocks into the same namespace as normal
variables. This is wrong. Disable the checks below as a temporary
hack. See PR13249 */
#if 0
if (check_used (attr, where) || check_done (attr, where)) if (check_used (attr, where) || check_done (attr, where))
return FAILURE; return FAILURE;
#endif
attr->common = 1; attr->common = 1;
return check_conflict (attr, where); return check_conflict (attr, where);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment