> As said I'd simply use NULL TYPE_MAX_VALUE, not drop TYPE_DOMAIN > completely (yes, NULL TYPE_DOMAIN is equal to [0:] so we can as well > print that - as you say, not sure what else breaks with that ;))
NULL TYPE_MAX_VALUE was used by my previous patch, because it used gfc_array_range_type that was built as such. I am testing the patch bellow + tree-pretty-print update: Index: tree-pretty-print.c =================================================================== --- tree-pretty-print.c (revision 236556) +++ tree-pretty-print.c (working copy) @@ -362,7 +362,7 @@ dump_array_domain (pretty_printer *pp, t } } else - pp_string (pp, "<unknown>"); + pp_string (pp, "0:"); pp_right_bracket (pp); } I suppose this is slightly better because it will make things more regular across frontends and will make LTO to merge bit more. Honza