Bug 22029 – importC: Parser accepts storage-class specifiers for fields

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-06-16T11:08:05Z
Last change time
2021-06-16T19:53:54Z
Keywords
accepts-invalid, ImportC, pull
Assigned to
No Owner
Creator
Iain Buclaw

Comments

Comment #0 by ibuclaw — 2021-06-16T11:08:05Z
As per 6.7.2.1 member-declaration: static_assert-declaration attribute-specifier-sequence(opt) specifier-qualifier-list member-declarator-list(opt) ; This is invalid, but it's accepted by dmd --- struct S { typedef int tfield; extern int efield; static int sfield; _Thread_local int tifield; auto int afield; register int rfield; }; ---
Comment #1 by dlang-bot — 2021-06-16T12:44:03Z
@ibuclaw created dlang/dmd pull request #12690 "fix Issue 22029 - importC: Parser accepts storage-class specifiers for fields" fixing this issue: - fix Issue 22029 - importC: Parser accepts storage-class specifiers for fields https://github.com/dlang/dmd/pull/12690
Comment #2 by dlang-bot — 2021-06-16T19:53:54Z
dlang/dmd pull request #12690 "fix Issue 22029 - importC: Parser accepts storage-class specifiers for fields" was merged into master: - f82aa825af31de42250b5df20df468f41ddb8b9a by Iain Buclaw: fix Issue 22029 - importC: Parser accepts storage-class specifiers for fields https://github.com/dlang/dmd/pull/12690