On 10/06/2017 01:34 PM, Steve Kargl wrote: > All, > > I have spent the last few days trying to reconcile the various Fortran > standards' requirements for handling BOZ. The short story is that J3 > over the last 27 years has made incompatible changes to the interpretation > of a BOZ (under some circumstances). The interpretations in F2008 and > F2015 now treat a boz-literal-constant as a sequence of bits. Unfortunately, > due to quirks in how BOZ are currently implemented in gfortran and a boat > load of documented and undocumented extensions, bringing gfortran into > agreement with F2008/F2015 led to a rewrite of BOZ handling. In the > rewrite I have made no attempt to use the -std= option to try to maintain > the incompatibilities between standards. >
The patch tests OK on trunk with linux-x86_64. I suggest this be committed as is and then see if there is any fallout that can be dealt with -std=legacy or similar later. Regards, Jerry