[Issue 5086] Regression(1.061): Stack overflow with recursive alias declaration
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Oct 22 00:46:35 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5086
Don <clugdbug at yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|Regression(1.062): Stack |Regression(1.061): Stack
|overflow with recursive |overflow with recursive
|alias declaration |alias declaration
--- Comment #2 from Don <clugdbug at yahoo.com.au> 2010-10-22 00:45:53 PDT ---
Regression was introduced in 1.061 by the fix to bug 4016, in expression.c,
DsymbolExp::semantic()
//printf("Identifier '%s' is a variable, type '%s'\n", toChars(),
v->type->toChars());
if (!type)
{
+ if (!v->type && v->scope)
+ v->semantic(v->scope);
type = v->type;
if (!v->type)
{ error("forward reference of %s %s", v->kind(), v->toChars());
The code doesn't fail on D2, because v->scope is not set on D2.
--
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