[flang-commits] [PATCH] D90696: [flang] Dodge gcc 8.2.0 build problem (NFC)
Peter Klausler via Phabricator via flang-commits
flang-commits at lists.llvm.org
Tue Nov 3 10:49:46 PST 2020
klausler created this revision.
klausler added reviewers: sscalpone, jeanPerier, PeteSteinfeld.
klausler added a project: Flang.
Herald added subscribers: llvm-commits, jdoerfert.
Herald added a project: LLVM.
klausler requested review of this revision.
Add explicit member initializers to the declarations of
some constexpr values added in a recent patch to avoid an
apparent problem with gcc 8.2.0 with default initializers.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D90696
Files:
flang/lib/Evaluate/intrinsics.cpp
Index: flang/lib/Evaluate/intrinsics.cpp
===================================================================
--- flang/lib/Evaluate/intrinsics.cpp
+++ flang/lib/Evaluate/intrinsics.cpp
@@ -207,26 +207,28 @@
// KIND(0), KIND(0.0), KIND(''), &c. value for the function result.
static constexpr IntrinsicDummyArgument DefaultingKIND{"kind",
{IntType, KindCode::kindArg}, Rank::scalar,
- Optionality::defaultsToDefaultForResult};
+ Optionality::defaultsToDefaultForResult, common::Intent::In};
// MatchingDefaultKIND is a KIND= argument whose default value is the
// kind of any "Same" function argument (viz., the one whose kind pattern is
// "same").
static constexpr IntrinsicDummyArgument MatchingDefaultKIND{"kind",
- {IntType, KindCode::kindArg}, Rank::scalar,
- Optionality::defaultsToSameKind};
+ {IntType, KindCode::kindArg}, Rank::scalar, Optionality::defaultsToSameKind,
+ common::Intent::In};
// SizeDefaultKind is a KIND= argument whose default value should be
// the kind of INTEGER used for address calculations, and can be
// set so with a compiler flag; but the standard mandates the
// kind of default INTEGER.
static constexpr IntrinsicDummyArgument SizeDefaultKIND{"kind",
- {IntType, KindCode::kindArg}, Rank::scalar,
- Optionality::defaultsToSizeKind};
-static constexpr IntrinsicDummyArgument RequiredDIM{
- "dim", {IntType, KindCode::dimArg}, Rank::scalar, Optionality::required};
-static constexpr IntrinsicDummyArgument OptionalDIM{
- "dim", {IntType, KindCode::dimArg}, Rank::scalar, Optionality::optional};
-static constexpr IntrinsicDummyArgument OptionalMASK{
- "mask", AnyLogical, Rank::conformable, Optionality::optional};
+ {IntType, KindCode::kindArg}, Rank::scalar, Optionality::defaultsToSizeKind,
+ common::Intent::In};
+static constexpr IntrinsicDummyArgument RequiredDIM{"dim",
+ {IntType, KindCode::dimArg}, Rank::scalar, Optionality::required,
+ common::Intent::In};
+static constexpr IntrinsicDummyArgument OptionalDIM{"dim",
+ {IntType, KindCode::dimArg}, Rank::scalar, Optionality::optional,
+ common::Intent::In};
+static constexpr IntrinsicDummyArgument OptionalMASK{"mask", AnyLogical,
+ Rank::conformable, Optionality::optional, common::Intent::In};
struct IntrinsicInterface {
static constexpr int maxArguments{7}; // if not a MAX/MIN(...)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D90696.302625.patch
Type: text/x-patch
Size: 2361 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20201103/50db55c0/attachment.bin>
More information about the flang-commits
mailing list