[Issue 3101] Stack overflow: declaring aggregate member twice with static if

2014-04-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3101

Walter Bright bugzi...@digitalmars.com changed:

   What|Removed |Added

Version|1.042   |D1

--


[Issue 3101] Stack overflow: declaring aggregate member twice with static if

2009-10-13 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3101


Walter Bright bugzi...@digitalmars.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||bugzi...@digitalmars.com
 Resolution||FIXED


--- Comment #4 from Walter Bright bugzi...@digitalmars.com 2009-10-13 
13:45:47 PDT ---
Fixed dmd 1.049 and 2.034

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


[Issue 3101] Stack overflow: declaring aggregate member twice with static if

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


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

   What|Removed |Added

   Keywords||patch




--- Comment #3 from Don clugd...@yahoo.com.au  2009-08-12 11:26:48 PDT ---
Patch is very easy.

in int AliasDeclaration::overloadInsert(Dsymbol *s), make sure it doesn't call
itself.


Index: declaration.c
===
--- declaration.c(revision 194)
+++ declaration.c(working copy)
@@ -543,6 +543,8 @@
 {overnext = s;
 return TRUE;
 }
+else if (overnext==this) // a recursive expansion would ensue. Bugzilla
3101
+   return FALSE;
 else
 {
 return overnext-overloadInsert(s);

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