On 7/17/19 8:32 PM, Steve Kargl wrote:
I will be away until Monday. Plenty of time for a review.
---snip --
Something not quite right here in this comment.
+/* A BOZ literal constant can appear in a limited number of contexts.
+ gfc_invalid_boz() is a help function to simplify error/warning generation.
+ Note, gfortran accepts the nonstandard 'X' for 'Z' the nonstandard
^<<< in >>?
+ suffix location. If -fallow-invalid-boz is used, then issue a warning;
+ otherwise issue an error. */
--- snip
+ /* FIXME BOZ. What to do with complex? */
Is your question here regarding whether to treat the two real storage locations
as one single area and pad? Or to duplicate one BOZ pattern into each? Or
require two BOZ patterns to be provided? or something else?
--- snip ---
-
+ /* FIXME BOZ. */
if (!gfc_in_match_data ()
&& (!gfc_notify_std(GFC_STD_F2003, "BOZ used outside a DATA "
- "statement at %C")))
- return MATCH_ERROR;
+ "statement at %L", &e->where)))
+ return MATCH_ERROR;
Maybe expand the comment a bit to better hint at the issue.
--- snip ---
The patch applies cleanly and tests OK on my machines here. I am very much in
favor of deprecating LONG and SHORT which are way too ambiguous.
I say OK to commit.
Regards,
Jerry