File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -1690,8 +1690,10 @@ static void CheckCoReduce(
16901690 characteristics::FunctionResult::Attr::Allocatable,
16911691 characteristics::FunctionResult::Attr::Pointer,
16921692 };
1693- const auto *result{
1694- procChars ? procChars->functionResult ->GetTypeAndShape () : nullptr };
1693+ const characteristics::TypeAndShape *result{
1694+ procChars && procChars->functionResult
1695+ ? procChars->functionResult ->GetTypeAndShape ()
1696+ : nullptr };
16951697 if (!procChars || !procChars->IsPure () ||
16961698 procChars->dummyArguments .size () != 2 || !procChars->functionResult ) {
16971699 messages.Say (
Original file line number Diff line number Diff line change 1+ ! RUN: %python %S/test_errors.py %s %flang_fc1
2+ external ext
3+ integer caf[* ]
4+ ! ERROR: OPERATION= argument of CO_REDUCE() must be a pure function of two data arguments
5+ call co_reduce(caf, ext)
6+ end
You can’t perform that action at this time.
0 commit comments