Bug 1558 – properties on template type need parenthesis

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
All
Creation time
2007-10-09T04:50:48Z
Last change time
2019-08-08T13:46:24Z
Keywords
rejects-valid
Assigned to
No Owner
Creator
Yang Bo

Comments

Comment #0 by pop.atry — 2007-10-09T04:50:48Z
struct s(int n) { } int main() { size_t p1 = s!(0).sizeof; // error size_t p2 = (s!(0)).sizeof; // OK return 0; }
Comment #1 by dvdfrdmn — 2007-10-13T13:59:47Z
This is a front end issue. Reassigning to Walter.
Comment #2 by smjg — 2007-11-08T06:28:42Z
DMD 1.023 Windows: bz1558.d(6): Error: undefined identifier struct s.sizeof bz1558.d(6): Error: expression struct s.sizeof is void and has no value bz1558.d(6): Error: cannot implicitly convert expression (struct s.sizeof) of ty pe void to uint
Comment #3 by razvan.nitu1305 — 2019-08-08T13:46:24Z
Fixed in D2