[Issue 377] New: Compiler error when using -inline only

Thomas Kuehne thomas-dloop at kuehne.cn
Fri Sep 29 01:19:17 PDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

d-bugmail at puremagic.com schrieb am 2006-09-27:
> http://d.puremagic.com/issues/show_bug.cgi?id=377

> Compile the following application with:
> # dmd.exe -inline -c main.d
> ... compiler will report 3 "is not an lvalue" error. No such error is reported
> when -inline is ommited.
>
> [main.d]
> module Application;
>
> struct List {
>         void get() {}
> }
> struct Array {
>         interface Model {
>                 List list();
>         }
>         List list() {
>                 return model ? model.list : List.init;
>         }
>         void item() {
>                 list.get;
>         }
>         private Model model;
> }
>
> int main(char[][] args) {
>         return 0;
> }

Added to DStress as
http://dstress.kuehne.cn/run/i/inline_17_A.d

Thomas


-----BEGIN PGP SIGNATURE-----

iD8DBQFFHNeULK5blCcjpWoRArF1AJwLqzHtJpkQU51bnuwlgCivAr5yUQCfTUhO
ZBvdWIFrYFn55/MgMvf6Rys=
=hmI1
-----END PGP SIGNATURE-----



More information about the Digitalmars-d-bugs mailing list