www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1054] New: regression: circular aliases cause segfaults

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1054

           Summary: regression: circular aliases cause segfaults
           Product: D
           Version: 1.009
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: thomas-dloop kuehne.cn







dmd -c a.d -> segfaults




dmd -c a.d -> compiles even though it shouldn't

test cases:
http://dstress.kuehne.cn/nocompile/a/alias_30_G.d
http://dstress.kuehne.cn/nocompile/a/alias_30_J.d
http://dstress.kuehne.cn/nocompile/a/alias_30_K.d
http://dstress.kuehne.cn/nocompile/e/enum_44_E.d


-- 
Mar 11 2007
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1054


thomas-dloop kuehne.cn changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |torhu yahoo.com





*** Bug 1063 has been marked as a duplicate of this bug. ***


-- 
Mar 29 2007
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1054


braddr puremagic.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |regression




-- 
Apr 13 2007
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1054


clugdbug yahoo.com.au changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|accepts-invalid             |





The first case no longer segfaults -- it stack overflows instead, and the
second case now generates an error.

On DMD1.042, the first case displays:

fog.d(2): Error: alias fog.a recursive alias declaration
Stack overflow

and on DMD2.027, it gets caught in an infinite loop:
fog.d(2): Error: alias fog.a recursive alias declaration
fog.d(2): Error: alias fog.a recursive alias declaration
fog.d(2): Error: alias fog.a recursive alias declaration
fog.d(2): Error: alias fog.a recursive alias declaration
fog.d(2): Error: alias fog.a recursive alias declaration


-- 
Apr 03 2009
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1054


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clugdbug yahoo.com.au
            Summary|regression: circular        |regression: circular
                   |aliases cause segfaults     |aliases cause compiler
                   |                            |stack overflow





This is fixed in DMD2.030, but not in DMD1.045.

alias a b;
alias b a;
a y;
---
ice.d(544): Error: alias ice.a recursive alias declaration
Stack overflow

----------

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 14 2009
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1054


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla digitalmars.com
         Resolution|                            |FIXED





02:53:56 PDT ---
Fixed dmd 1.046

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