[Chapel Merge] Avoid compiler crash with CG

Branch: refs/heads/master
Revision: df27c7a
Author: vasslitvinov
Log Message:

Merge pull request #17139 from vasslitvinov/fix-compiler-crash-CG

Avoid compiler crash with CG

The compiler used to crash when the interface declaration was not visible.
With this change, issue an error message instead.

r: @lydia-duncan

Modified Files:
A test/constrained-generics/basic/set1/error-not-visible.chpl
A test/constrained-generics/basic/set1/error-not-visible.good
R test/constrained-generics/basic/set1/module-with-ifc.bad
R test/constrained-generics/basic/set1/module-with-ifc.future
M compiler/AST/interfaces.cpp
M test/constrained-generics/basic/set1/module-with-ifc.chpl

Compare: Comparing d09498cbd1d5...df27c7a0a23e · chapel-lang/chapel · GitHub