D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 21970 - importC: Error: variable extern symbols cannot have initializers
Summary: importC: Error: variable extern symbols cannot have initializers
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 major
Assignee: No Owner
URL:
Keywords: ImportC, rejects-valid
Depends on:
Blocks:
 
Reported: 2021-05-25 16:11 UTC by Iain Buclaw
Modified: 2021-05-27 10:00 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Iain Buclaw 2021-05-25 16:11:26 UTC
All extern variables are rejected.
---
extern int signgam;
extern char *program_invocation_name;
Comment 1 Iain Buclaw 2021-05-26 12:47:53 UTC
PR raised https://github.com/dlang/dmd/pull/12587
Comment 2 Iain Buclaw 2021-05-27 10:00:52 UTC
Committed to mainline as https://github.com/dlang/dmd/commit/096fbae96028b1ab0dfda554d4b1661bb45668da