digitalmars.D.bugs - Compiler crash (passing a temp into an inout func. param.)
- Dave (7/7) Jul 19 2005 Compiling this code with DMD 0.128 on both Windows and Linux:
- Chris Sauls (5/13) Jul 19 2005 Looks like an extension to the bug I posted not long ago. Apparently th...
- Thomas Kuehne (9/16) Jul 19 2005 -----BEGIN PGP SIGNED MESSAGE-----
- Chris Sauls (13/14) Jul 19 2005 # # Expression *Expression::toLvalue(Expression *e)
- Jarrett Billingsley (4/17) Jul 20 2005 Oh. Oh, my.
- Walter (5/18) Jul 23 2005 LOL. That's detritus left over from debugging. I insert those so it'll d...
Compiling this code with DMD 0.128 on both Windows and Linux: void main() { foo(bar()); } void foo(inout int i) {} int bar() { return 10; } will crash the compiler immediately after the error message: error.d(3): bar() is not an lvalue is printed out.
Jul 19 2005
Dave wrote:Compiling this code with DMD 0.128 on both Windows and Linux: void main() { foo(bar()); } void foo(inout int i) {} int bar() { return 10; } will crash the compiler immediately after the error message: error.d(3): bar() is not an lvalueLooks like an extension to the bug I posted not long ago. Apparently the real bug you and I have run into boils down to: inout parameters don't like expressions, including assignments, invocations, and .dup's. -- Chris Sauls
Jul 19 2005
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Dave schrieb am Tue, 19 Jul 2005 16:55:02 +0000 (UTC):Compiling this code with DMD 0.128 on both Windows and Linux: void main() { foo(bar()); } void foo(inout int i) {} int bar() { return 10; } will crash the compiler immediately after the error message: error.d(3): bar() is not an lvalue is printed out.- -> dmd/src/dmd/expression.c:517 -----BEGIN PGP SIGNATURE----- iD8DBQFC3fAg3w+/yD4P9tIRAlfjAJ44gR6ru5gk9yAH6H0RS9o4bfbjrgCdEMzf efh27o2ANs9bKPY0b2hUZYg= =If4g -----END PGP SIGNATURE-----
Jul 19 2005
Thomas Kuehne wrote:- -> dmd/src/dmd/expression.c:517#this I'm confounded. -- Chris Sauls
Jul 19 2005
"Chris Sauls" <ibisbasenji gmail.com> wrote in message news:dbkrgj$1kq5$1 digitaldaemon.com...Thomas Kuehne wrote:Oh. Oh, my. Well that explains all these crashes.- -> dmd/src/dmd/expression.c:517#this I'm confounded.
Jul 20 2005
"Chris Sauls" <ibisbasenji gmail.com> wrote in message news:dbkrgj$1kq5$1 digitaldaemon.com...Thomas Kuehne wrote:LOL. That's detritus left over from debugging. I insert those so it'll die at runtime under the debugger, giving me a stack trace. Sometimes, I forget to remove them.- -> dmd/src/dmd/expression.c:517#this I'm confounded.
Jul 23 2005