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.
1 parent b35f614 commit ade9e79Copy full SHA for ade9e79
src/lpython/semantics/python_ast_to_asr.cpp
@@ -2735,7 +2735,7 @@ class CommonVisitor : public AST::BaseVisitor<Struct> {
2735
throw SemanticAbort();
2736
}
2737
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;
+ ASR::symbol_t *sym = ASRUtils::symbol_get_past_external(ASR::down_cast<ASR::Struct_t>(asr_alloc_type)->m_derived_type);
2739
if (ASR::is_a<ASR::StructType_t>(*sym)) {
2740
ASR::StructType_t *st = ASR::down_cast<ASR::StructType_t>(sym);
2741
if (st->m_abi != ASR::abiType::BindC) {
0 commit comments