On Sun, Oct 11, 2015 at 10:18:48PM -0700, Louis Krupp wrote: > The problem involves a derived type with a character component declared > CHARACTER(NULL()) or CHARACTER(NULL(n)), where mold argument n is an integer > pointer. >
I was looking at 67805 this weekend, which is somewhat related to this PR. AFAICT, gfortran does no checking for n in CHARACTER(LEN=n). n should be a scalar-int-expr (that is scalar INTEGER expression). NULL() is not an integer, and NULL(n) is a disassociated pointer. So, I believe neither can appear in an scalar-int-expr. Note, also that there is a table in 13.7.125 on where NULL() can appear. My patch for 67805 leads to one regression that I've been unable to resolve. -- Steve