[Issue 4949] New: ICE on invalid static if using value of 'this'
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Sep 27 10:30:11 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4949
Summary: ICE on invalid static if using value of 'this'
Product: D
Version: D1 & D2
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: ibuclaw at ubuntu.com
--- Comment #0 from Iain Buclaw <ibuclaw at ubuntu.com> 2010-09-27 10:29:25 PDT ---
Created an attachment (id=777)
catch functions returning CANT_INTEPRET_EXP
testcase:
class A
{
bool delegate() dg;
void B()
{
static if ( dg() )
should error graciously;
}
}
Produces:
ice.d(6): Error: value of 'this' is not known at compile time
Segmentation fault (core dumped)
Catching it in gdb, occurs in interpret.c at CallExp::interpret, around line
2720. A few assignments, no checking whether or not any returned
EXP_CANT_INTERPRET.
Currently rebuilding using the attached change...
--
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