[Chapel Merge] reorder function decl. due to smoke test failure

Branch: refs/heads/main
Revision: 08af2ed
Author: arezaii
Link: reorder function decl. due to smoke test failure by arezaii · Pull Request #18831 · chapel-lang/chapel · GitHub
Log Message:

Merge pull request #18831 from arezaii/smoketest-fix

reorder function decl. due to smoke test failure

This PR attempts to fix a bug introduced in PR #18783
which caused a smoke test to fail when using the intel
compiler.

TESTING:

I compared the list of loaded modules and the
output of printchplenv --all to those from the smoke test.

After reproducing the failure on kay-elogin2 with settings
taken from the smoke test, I have verified that the updated
code builds using make DEBUG=0 WARNINGS=1 OPTIMIZE=1.

Reviewed by @mppf

Signed-off-by: arezaii ahmad.rezaii@hpe.com

Modified Files:
M compiler/next/include/chpl/queries/Context-detail.h

Compare: https://github.com/chapel-lang/chapel/compare/cb1fa03bb071...08af2ed9a296