Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28459 Discussions

Use of DELIM in input/output statements

IanH
Honored Contributor II
249 Views

F2003 C926 (F2008 C929) tells me that I cannot use DELIM in an input/output statement that isn't namelist formatting or list directed.  ifort appears to miss this constraint.

PROGRAM p
  IMPLICIT NONE
  WRITE (*, "(A)", DELIM='QUOTE') 'Oh.  That''s a bit unfortunate.'
END PROGRAM p

 

>ifort /check:all /warn:all /standard-semantics /stand:f2003 "2016-09-03 delim.f90"
Intel(R) Visual Fortran Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 17.0 Beta Build 20160517
Copyright (C) 1985-2016 Intel Corporation.  All rights reserved.

ifort: NOTE: The Beta evaluation period for this product ends on 7-oct-2016 UTC.
Microsoft (R) Incremental Linker Version 14.00.24213.1
Copyright (C) Microsoft Corporation.  All rights reserved.

"-out:2016-09-03 delim.exe"
-subsystem:console
"2016-09-03 delim.obj"

 

(For "normal" data descriptors the constraint makes sense, because the specifier is meaningless, but in the context of UDDTIO it is a bit of a shame - I was operating under the misconception that I could use DELIM to vary the behaviour of a DT data descriptor without having to encode the equivalent specification in the bits that can follow the DT.  Oh well.)

0 Kudos
2 Replies
Steven_L_Intel1
Employee
249 Views

Thanks.

0 Kudos
Steven_L_Intel1
Employee
249 Views

Escalated as DPD200414145.

0 Kudos
Reply