Bug 22275 – importC: Error: incompatible types for (dest) !is (buf): char* and char[1]

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-09-04T10:09:47Z
Last change time
2021-09-30T01:46:06Z
Keywords
pull
Assigned to
No Owner
Creator
Iain Buclaw

Comments

Comment #0 by ibuclaw — 2021-09-04T10:09:47Z
void test(char *dest) { char buf[1]; if (dest != buf) return; }
Comment #1 by dlang-bot — 2021-09-04T21:16:44Z
@ibuclaw created dlang/dmd pull request #13049 "fix Issue 22275 - importC: Error: incompatible types for '(dest) !is (buf)': 'char*' and 'char[1]'" fixing this issue: - fix Issue 22275 - importC: Error: incompatible types for '(dest) !is (buf)': 'char*' and 'char[1]' https://github.com/dlang/dmd/pull/13049
Comment #2 by dlang-bot — 2021-09-19T08:26:29Z
@WalterBright created dlang/dmd pull request #13089 "fix Issue 22275 ImportC incompatible types char* and char[1]" fixing this issue: - fix Issue 22275 ImportC incompatible types char* and char[1] https://github.com/dlang/dmd/pull/13089
Comment #3 by dlang-bot — 2021-09-24T08:07:03Z
dlang/dmd pull request #13089 "fix Issue 22275 ImportC incompatible types char* and char[1]" was merged into stable: - 3dd4adc93907d6ce600920356e0b522c914893af by Walter Bright: fix Issue 22275 ImportC incompatible types char* and char[1] https://github.com/dlang/dmd/pull/13089
Comment #4 by dlang-bot — 2021-09-30T01:46:06Z
dlang/dmd pull request #13108 "merge stable" was merged into master: - 3dd351fdffc07c20bbe34518a3d4ba75b961beaa by Walter Bright: fix Issue 22275 ImportC incompatible types char* and char[1] (#13089) https://github.com/dlang/dmd/pull/13108