Bug 22584 – importC: Error: undefined reference to 'parameter' when no parameter names in forward declaration
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-12-12T00:30:37Z
Last change time
2021-12-14T10:34:36Z
Keywords
accepts-invalid, ImportC, pull, rejects-valid
Assigned to
No Owner
Creator
Iain Buclaw
Comments
Comment #0 by ibuclaw — 2021-12-12T00:30:37Z
---
extern long add(long, long);
long add(long a, long b)
{
return a + b;
}
---
Caused by PR fix for issue 22537 and issue 22538.
Comment #1 by ibuclaw — 2021-12-12T00:43:29Z
Likewise, the inverse compiles with DMD, but does not compile with GCC.
---
extern long add(long a, long b);
long add(long, long)
{
return a + b;
}
Comment #2 by dlang-bot — 2021-12-12T00:54:42Z
@ibuclaw created dlang/dmd pull request #13417 "fix Issue 22584 - importC: Error: undefined reference to 'parameter' when no parameter names in forward declaration" fixing this issue:
- fix Issue 22584 - importC: Error: undefined reference to 'parameter' when no parameter names in forward declaration
https://github.com/dlang/dmd/pull/13417
Comment #3 by dlang-bot — 2021-12-12T01:57:12Z
dlang/dmd pull request #13417 "fix Issue 22584 - importC: Error: undefined reference to 'parameter' when no parameter names in forward declaration" was merged into stable:
- 2869d0b02aded497f20c88e4e84161c3a46773fd by Iain Buclaw:
fix Issue 22584 - importC: Error: undefined reference to 'parameter' when no parameter names in forward declaration
https://github.com/dlang/dmd/pull/13417
Comment #4 by dlang-bot — 2021-12-14T10:34:36Z
dlang/dmd pull request #13421 "merge stable" was merged into master:
- e0c730f6e95223b9b40386945fef76ccfee85d7e by Iain Buclaw:
fix Issue 22584 - importC: Error: undefined reference to 'parameter' when no parameter names in forward declaration
https://github.com/dlang/dmd/pull/13421