The above PR had a partial fix by Tobias Burnus for a valid use of STORAGE_SIZE, but did not properly handle an error situation. The attached simple fix adds a list of allowed intrinsics for use in specification inquiries in F2008+. Testcase by Tobias. Regtested on x86_64-pc-linux-gnu. OK for trunk? Note: I don't have commit rights, so please somebody else take care of it after review. Thanks, Harald 2019-01-22 Harald Anlauf PR fortran/57553 * expr.c (check_inquiry): Add list of inquiry functions allowed in constant expressions for F2008+. 2019-01-22 Harald Anlauf PR fortran/57553 * gfortran.dg/pr57553.f90: New test.