[Issue 2309] Crash on a template mixing in a variadic template with an undefined template identifier
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Apr 24 01:29:57 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2309
clugdbug at yahoo.com.au changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
------- Comment #1 from clugdbug at yahoo.com.au 2009-04-24 03:30 -------
Here's a patch: This one is really simple.
--------------------
Index: mangle.c
===================================================================
--- mangle.c (revision 24)
+++ mangle.c (working copy)
@@ -217,7 +217,7 @@
printf("\n");
#endif
id = ident ? ident->toChars() : toChars();
- if (tempdecl->parent)
+ if (tempdecl && tempdecl->parent)
{
char *p = tempdecl->parent->mangle();
if (p[0] == '_' && p[1] == 'D')
--
More information about the Digitalmars-d-bugs
mailing list