[Issue 377] New: Compiler error when using -inline only
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Sep 27 08:19:09 PDT 2006
http://d.puremagic.com/issues/show_bug.cgi?id=377
Summary: Compiler error when using -inline only
Product: D
Version: 0.167
Platform: PC
OS/Version: Windows
Status: NEW
Severity: major
Priority: P1
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: boris.kolar at globera.com
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;
}
--
More information about the Digitalmars-d-bugs
mailing list