Skip to content

Commit

Permalink
fix Issue 24042 - ImportC: Error: no definition for static function (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright authored Nov 24, 2023
1 parent b063e0c commit 1642660
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compiler/src/dmd/backend/cgen.d
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,8 @@ static if (TARGET_SEGMENTED)
// outdata(Symbol *s)
if (f.sym.Sseg == UNKNOWN)
{
printf("Error: no definition for static %s\n", prettyident(f.sym)); // no definition found for static
error(null, 0, 0, "no definition found for static `%s` in this module, statics defined in one module cannot be referenced from another",
prettyident(f.sym)); // no definition found for static
err_exit(); // BUG: do better
}
}
Expand Down

0 comments on commit 1642660

Please sign in to comment.