www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11926] New: Segmentation fault when using const in an enum

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

           Summary: Segmentation fault when using const in an enum
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: michaelpm394 gmail.com



Doing:
enum {
    const a = 1,
    const b = 2
}

will result in a segmentation fault.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 14 2014
next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11926


Iain Buclaw <ibuclaw ubuntu.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ibuclaw ubuntu.com
           Severity|normal                      |major



Raising to major - a corrupt Identifier pointer causes the ICE.

{
  <RootObject> = {_vptr.RootObject = 0x0},
  value = 25720336,
  string = 0x5a95dc, // Unreadable address
  len = 0
}


(gdb) bt

../../gcc-devel/gcc/d/dfrontend/dsymbol.c:203

../../gcc-devel/gcc/d/dfrontend/dsymbol.c:218

s2=0x18a2720) at ../../gcc-devel/gcc/d/dfrontend/dsymbol.c:1049

sd=0x1887610, memnum=0) at ../../gcc-devel/gcc/d/dfrontend/dsymbol.c:610

sd=<optimised out>, memnum=1) at ../../gcc-devel/gcc/d/dfrontend/enum.c:
105

at ../../gcc-devel/gcc/d/dfrontend/module.c:659

../../gcc-devel/gcc/d/d-lang.cc:988



../../gcc-devel/gcc/toplev.c:1963

argc=18, ubp_av=0x7fffffffdc58, init=<optimised out>, fini=<optimised
out>, rtld_fini=<optimised out>, stack_end=0x7fffffffdc48) at libc-start.c:260


-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 14 2014
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11926


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice, pull
           Platform|x86                         |All
         OS/Version|Linux                       |All



https://github.com/D-Programming-Language/dmd/pull/3098

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 14 2014
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11926




Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/c89e6d30d4c392c9ec942e0b08b29d4eab3546ec
fix Issue 11926 - Segmentation fault when using const in an enum

https://github.com/D-Programming-Language/dmd/commit/df5b5365fbccb9c571ccce7cc43232e4f49b646c


Issue 11926 - Segmentation fault when using const in an enum

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 14 2014
prev sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11926


Iain Buclaw <ibuclaw ubuntu.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
           Platform|All                         |x86
         Resolution|                            |FIXED
         OS/Version|All                         |Linux




 https://github.com/D-Programming-Language/dmd/pull/3098
https://github.com/D-Programming-Language/dmd/commit/df5b5365fbccb9c571ccce7cc43232e4f49b646c -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 14 2014