[Issue 4981] New: Assertion failure: 'precedence[e->op] != PREC_zero' on line 816 in file 'expression.c'
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Oct 2 21:27:07 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4981
Summary: Assertion failure: 'precedence[e->op] != PREC_zero' on
line 816 in file 'expression.c'
Product: D
Version: D2
Platform: Other
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: 2korden at gmail.com
--- Comment #0 from Koroskin Denis <2korden at gmail.com> 2010-10-02 21:26:47 PDT ---
shared class A
{
void funcProto()
{
}
void func(shared(FuncType) func)
{
}
}
alias typeof(&A.init.funcProto) FuncType;
shared class B : A
{
void foo()
{
B* b;
shared(FuncType) o = b.func = &b.bar;
//auto o = b.func = &b.bar;
}
void bar()
{
}
}
Assertion failure: 'precedence[e->op] != PREC_zero' on line 816 in file
'expression.c'
abnormal program termination
Replacing "shared(FuncType) o" with "auto o" (line 20) adds additional error
message:
test.d(20): Error: variable test.B.foo.o voids have no value
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list