Bug 13787 – Error without line number when slicing function pointer
Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-11-28T09:20:00Z
Last change time
2015-02-18T03:40:30Z
Keywords
diagnostic, pull
Assigned to
nobody
Creator
r.sagitario
Comments
Comment #0 by r.sagitario — 2014-11-28T09:20:43Z
Compiling:
void main()
{
void[] p = (&main)[0..1];
}
just yields errors without line numbers
Error: no size for type void()
Error: no size for type void()