digitalmars.D.bugs - [Issue 4981] New: Assertion failure: 'precedence[e->op] != PREC_zero' on line 816 in file 'expression.c'
- d-bugmail puremagic.com (45/45) Oct 02 2010 http://d.puremagic.com/issues/show_bug.cgi?id=4981
- d-bugmail puremagic.com (14/14) Oct 07 2010 http://d.puremagic.com/issues/show_bug.cgi?id=4981
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 puremagic.com
ReportedBy: 2korden gmail.com
---
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: -------
Oct 02 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4981
Don <clugdbug yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |clugdbug yahoo.com.au
Resolution| |DUPLICATE
The ICE is a duplicate of bug 4926. You're also seeing a poor error message:
I've created bug 5010 for that.
*** This issue has been marked as a duplicate of issue 4926 ***
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 07 2010








d-bugmail puremagic.com