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()
Comment #1 by k.hara.pg — 2014-11-29T06:12:05Z
Comment #2 by github-bugzilla — 2014-11-30T03:43:57Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/dfa0b4b4523581cea7738c4cb169416e65caefd4 fix Issue 13787 - Error without line number when slicing function pointer https://github.com/D-Programming-Language/dmd/commit/ed9a18a5f0c48262173aa59f4e065fe7195fe443 Merge pull request #4181 from 9rnsr/fix13787 Issue 13787 - Error without line number when slicing function pointer
Comment #3 by github-bugzilla — 2015-02-18T03:40:30Z