[Issue 8988] Segfault in tricky CTFE scenario
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Nov 9 08:55:10 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8988
Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |andrej.mitrovich at gmail.com
--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2012-11-09 08:55:09 PST ---
Slightly reduced:
template GetParent(T)
{
alias Object GetParent;
enum x = (()=>(new A()).foo())();
}
class A : GetParent!A
{
string foo(){ return "Object"; }
}
The segfault is in ClassDeclaration::searchBase:
Dsymbol *cdb = b->type->isClassHandle();
if (cdb->ident->equals(ident)) // offending line
cdb is not checked for NULL.
--
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