We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 00b8d59 + d6ac861 commit dde47f4Copy full SHA for dde47f4
src/libasr/asr_verify.cpp
@@ -1036,6 +1036,8 @@ class VerifyVisitor : public BaseWalkVisitor<VerifyVisitor>
1036
}
1037
1038
void visit_Array(const Array_t& x) {
1039
+ require(!ASR::is_a<ASR::Allocatable_t>(*x.m_type),
1040
+ "Allocatable cannot be inside array");
1041
visit_ttype(*x.m_type);
1042
require(x.n_dims != 0, "Array type cannot have 0 dimensions.")
1043
require(!ASR::is_a<ASR::Array_t>(*x.m_type), "Array type cannot be nested.")
0 commit comments