[Issue 3261] compiler crash with mixin and forward reference (Issue 402 and 784)

2015-06-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3261

Andrei Alexandrescu and...@erdani.com changed:

   What|Removed |Added

Version|2.031   |D2

--


[Issue 3261] compiler crash with mixin and forward reference (Issue 402 and 784)

2009-08-25 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3261


Don clugd...@yahoo.com.au changed:

   What|Removed |Added

   Keywords||patch
 CC||clugd...@yahoo.com.au




--- Comment #1 from Don clugd...@yahoo.com.au  2009-08-25 02:30:46 PDT ---
Here's a superficial patch. If an error occurs while determining the arguments,
it shouldn't try to determine which template is intended.


Patch: template.c, line 4542.

// Run semantic on each argument, place results in tiargs[]
+int olderrors = global.errors;
semanticTiargs(sc);
+if (global.errors != olderrors) return; // Quit immediately if error
occurs in argument

tempdecl = findBestMatch(sc);
if (!tempdecl)
{inst = this;
return;// error recovery
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 3261] compiler crash with mixin and forward reference (Issue 402 and 784)

2009-08-25 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3261


Stewart Gordon s...@iname.com changed:

   What|Removed |Added

 Blocks||340




--- Comment #2 from Stewart Gordon s...@iname.com  2009-08-25 11:29:12 PDT ---
I guess this counts as an actual forward reference bug, given that Mix1 is
kind-of a forward reference

(This seems to be a variation of CRTP.)

(In reply to comment #0)
 this is slightly different code from Issue 402 and Issue 784, but 
 it causes the compiler to freeze in DMD 1.046 and 2.032:

Uh, 2.032 doesn't seem to have been released yet.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---