Skip to content

Commit ade9e79

Browse files
committed
Get past external
1 parent b35f614 commit ade9e79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lpython/semantics/python_ast_to_asr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2735,7 +2735,7 @@ class CommonVisitor : public AST::BaseVisitor<Struct> {
27352735
throw SemanticAbort();
27362736
}
27372737
if (ASR::is_a<ASR::Struct_t>(*asr_alloc_type)) {
2738-
ASR::symbol_t *sym = ASR::down_cast<ASR::Struct_t>(asr_alloc_type)->m_derived_type;
2738+
ASR::symbol_t *sym = ASRUtils::symbol_get_past_external(ASR::down_cast<ASR::Struct_t>(asr_alloc_type)->m_derived_type);
27392739
if (ASR::is_a<ASR::StructType_t>(*sym)) {
27402740
ASR::StructType_t *st = ASR::down_cast<ASR::StructType_t>(sym);
27412741
if (st->m_abi != ASR::abiType::BindC) {

0 commit comments

Comments
 (0)