digitalmars.D.bugs - [Issue 857] New: Error: no size for type void() doesn't show the line number
- d-bugmail puremagic.com (21/21) Jan 19 2007 http://d.puremagic.com/issues/show_bug.cgi?id=857
- d-bugmail puremagic.com (7/7) Jan 21 2007 http://d.puremagic.com/issues/show_bug.cgi?id=857
- d-bugmail puremagic.com (13/13) Mar 23 2007 http://d.puremagic.com/issues/show_bug.cgi?id=857
http://d.puremagic.com/issues/show_bug.cgi?id=857 Summary: Error: no size for type void() doesn't show the line number Product: D Version: 1.00 Platform: All OS/Version: All Status: NEW Keywords: diagnostic Severity: minor Priority: P3 Component: DMD AssignedTo: bugzilla digitalmars.com ReportedBy: deewiant gmail.com void main() { void function()[] x; x = &main ~ x; } The above invalid code causes the error "Error: no size for type void()". The error on which the line occurs is not reported. --
Jan 19 2007
http://d.puremagic.com/issues/show_bug.cgi?id=857 ------- Comment #1 from thomas-dloop kuehne.cn 2007-01-21 17:41 ------- related: http://dstress.kuehne.cn/nocompile/v/void_02_A.d http://dstress.kuehne.cn/nocompile/v/void_02_B.d http://dstress.kuehne.cn/nocompile/v/void_02_D.d --
Jan 21 2007
http://d.puremagic.com/issues/show_bug.cgi?id=857 deewiant gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME ------- Comment #2 from deewiant gmail.com 2007-03-23 12:28 ------- Works in 1.009 - the code compiles. Looking at it now, I'm not sure why I called it invalid. It was probably the fact that code like the following is valid, which I didn't know until now: int[] x; x = 1 ~ x; // concatenating to an int, which is kind of weird --
Mar 23 2007