www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9892] New: [ICE] forward reference in enum declaration members causes compiler segfault

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

           Summary: [ICE] forward reference in enum declaration members
                    causes compiler segfault
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: ice
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: k.hara.pg gmail.com


--- Comment #0 from Kenji Hara <k.hara.pg gmail.com> 2013-04-06 11:20:26 PDT ---
Test case:

enum
{
    a = b, //Segfault!
    b
}
void main() {}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 06 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9892


Andrej Mitrovic <andrej.mitrovich gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich gmail.com


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich gmail.com> 2013-04-06
11:21:54 PDT ---
This is also an accepts-invalid, right? (if it compiled).

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 06 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9892



--- Comment #2 from Kenji Hara <k.hara.pg gmail.com> 2013-04-06 11:36:04 PDT ---
(In reply to comment #1)
 This is also an accepts-invalid, right? (if it compiled).
I think this code should report "forward reference error for 'b'". -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 06 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9892


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla digitalmars.com


--- Comment #3 from Walter Bright <bugzilla digitalmars.com> 2013-04-06
13:24:03 PDT ---
https://github.com/D-Programming-Language/dmd/pull/1855

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 06 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9892



--- Comment #4 from github-bugzilla puremagic.com 2013-04-10 19:53:53 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/edd0a0e5b21a5829c839a6012d658552fac0f4f0
fix Issue 9892 - [ICE] forward reference in enum declaration members causes
compiler segfault

https://github.com/D-Programming-Language/dmd/commit/af67f438d3eafd2c7fb1ffe96b8980611cec176d
Merge pull request #1855 from WalterBright/fix9892

fix Issue 9892 - [ICE] forward reference in enum declaration members cau...

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 10 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9892


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 10 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9892



--- Comment #5 from github-bugzilla puremagic.com 2013-04-10 22:03:46 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/805cb90fdedcaba176465c8f8e441e39291b3732
imrove issue 9892 test case

https://github.com/D-Programming-Language/dmd/commit/2ba4076ef4c8eb4c6f4af506ff889682f9814732
Merge pull request #1885 from 9rnsr/fix_testcase

Fix test cases for issue 9892 and 6795

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