Bug 21931 – importC: 'alias time_t = time_t;' cannot alias itself, use a qualified name to create an overload set

Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-05-19T17:44:42Z
Last change time
2021-05-20T10:29:12Z
Keywords
ImportC
Assigned to
No Owner
Creator
Iain Buclaw

Comments

Comment #0 by ibuclaw — 2021-05-19T17:44:42Z
Code isn't wrong, the parser is swallowing the first identifier. --- typedef long int __int64_t; typedef __int64_t time_t; ---
Comment #1 by dlang-bot — 2021-05-19T17:51:29Z
@ibuclaw created dlang/dmd pull request #12538 "fix Issue 21931 - importC: 'alias time_t = time_t;' cannot alias itself, use a qualified name to create an overload set" fixing this issue: - fix Issue 21931 - importC: 'alias time_t = time_t;' cannot alias itself, use a qualified name to create an overload set https://github.com/dlang/dmd/pull/12538
Comment #2 by dlang-bot — 2021-05-20T00:25:21Z
dlang/dmd pull request #12538 "fix Issue 21931 - importC: 'alias time_t = time_t;' cannot alias itself, use a qualified name to create an overload set" was merged into master: - 96be90eea6f6793937dd92f37c3a263f48322975 by Iain Buclaw: fix Issue 21931 - importC: 'alias time_t = time_t;' cannot alias itself, use a qualified name to create an overload set https://github.com/dlang/dmd/pull/12538