Thread overview |
---|
January 19, 2007 [Issue 857] New: Error: no size for type void() doesn't show the line number | ||||
---|---|---|---|---|
| ||||
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. -- |
January 21, 2007 [Issue 857] Error: no size for type void() doesn't show the line number | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | 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 -- |
March 23, 2007 [Issue 857] Error: no size for type void() doesn't show the line number | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | 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 -- |
Copyright © 1999-2021 by the D Language Foundation