This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] fortran/66043 -- Check for NULL() in STORAGE_SIZE()


Hi Steve,

+      gfc_error ("%qs argument of %qs intrinsic at %L shall not be an "
+		 "unallocated allocatable variable or a disassociated or "
+		 "undefined pointerâ,

Given that we know explicitly that the expr is NULL, wouldnât it be nicer to give only the relevant condition (here, I guess itâs âundefined pointerâ)?

Regarding the other example mention in the PRâs comment #2, I guess thereâs no requirement for the compiler to diagnose this, is there?

FX

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]