This is an archive of the discontinued LLVM Phabricator instance.

[flang] Settle ambiguity between C795 and C721
ClosedPublic

Authored by klausler on Mar 21 2023, 3:17 PM.

Details

Summary

C721 says that a type parameter value of '*' is permitted in the type-spec
for a named constant; C795 says that such type parameters are allowed
in type-specs only for a few kinds of things, not including named
constants. The interpretation seems to depend on context, with C721
applying to intrinsic types (i.e., character) and C795 applying only
to derived types.

Diff Detail

Event Timeline

klausler created this revision.Mar 21 2023, 3:17 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 21 2023, 3:17 PM
klausler requested review of this revision.Mar 21 2023, 3:17 PM
PeteSteinfeld accepted this revision.Mar 21 2023, 5:52 PM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Mar 21 2023, 5:52 PM
This revision was automatically updated to reflect the committed changes.