Thread overview
[Issue 18645] DMD segmentation fault
Mar 22, 2018
Mihails Strasuns
Mar 22, 2018
Mihails Strasuns
Mar 23, 2018
Mihails Strasuns
Mar 23, 2018
Mihails Strasuns
Mar 23, 2018
Mike Franklin
Mar 26, 2018
Walter Bright
Mar 26, 2018
greenify
[Issue 18645] [Reg 2.078] DMD segmentation fault
Apr 15, 2018
Martin Nowak
March 22, 2018
https://issues.dlang.org/show_bug.cgi?id=18645

--- Comment #1 from Mihails Strasuns <mihails.strasuns.contractor@sociomantic.com> ---
This crashes 2.079 and 2.078, but compiles on 2.071 (haven't checked versions
in between yet):

```
enum A
{
    x = global,
    y
}

static global = INIT;

immutable INIT = 42;
```

--
March 22, 2018
https://issues.dlang.org/show_bug.cgi?id=18645

--- Comment #2 from Mihails Strasuns <mihails.strasuns.contractor@sociomantic.com> ---
Even more reduced case:

```
immutable INIT = 42;

enum A
{
    x = INIT,
    y
}
```

--
March 23, 2018
https://issues.dlang.org/show_bug.cgi?id=18645

Mihails Strasuns <mihails.strasuns.contractor@sociomantic.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|major                       |regression

--
March 23, 2018
https://issues.dlang.org/show_bug.cgi?id=18645

--- Comment #3 from Mihails Strasuns <mihails.strasuns.contractor@sociomantic.com> ---
Regression introduced by this commit:

commit 334f853e8371fdab46875bf3316ba78a7c237578
Author: JinShil <slavo5150@yahoo.com>
Date:   Tue Nov 21 22:36:35 2017 +0900

    Fix Issue 12385 - Enum member should not be modifiable when the member is
immutable

--
March 23, 2018
https://issues.dlang.org/show_bug.cgi?id=18645

Mike Franklin <slavo5150@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull
                 CC|                            |slavo5150@yahoo.com

--- Comment #4 from Mike Franklin <slavo5150@yahoo.com> ---
Attempted fix: https://github.com/dlang/dmd/pull/8072

--
March 26, 2018
https://issues.dlang.org/show_bug.cgi?id=18645

Walter Bright <bugzilla@digitalmars.com> changed:

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

--- Comment #5 from Walter Bright <bugzilla@digitalmars.com> ---
Fixed by https://github.com/dlang/dmd/pull/8072

--
March 26, 2018
https://issues.dlang.org/show_bug.cgi?id=18645

greenify <greeenify@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |greeenify@gmail.com
         Resolution|---                         |FIXED

--
April 06, 2018
https://issues.dlang.org/show_bug.cgi?id=18645

--- Comment #6 from github-bugzilla@puremagic.com ---
Commits pushed to master at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/5c11b2969441e2a05596e267fdfd944df21cd615 Fix Issue 18645 - DMD segmentation fault (Enum Initialization)

https://github.com/dlang/dmd/commit/faa6f89bfb190b78619688897ccd49bc9750cd44 Merge pull request #8072 from JinShil/fix_18645

Fix Issue 18645 - DMD segmentation fault (Enum Initialization)

--
April 15, 2018
https://issues.dlang.org/show_bug.cgi?id=18645

Martin Nowak <code@dawg.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |code@dawg.eu
            Summary|DMD segmentation fault      |[Reg 2.078] DMD
                   |                            |segmentation fault

--- Comment #7 from Martin Nowak <code@dawg.eu> ---
(In reply to Mihails Strasuns from comment #1)
> This crashes 2.079 and 2.078, but compiles on 2.071 (haven't checked
> versions in between yet):

Using the install.sh script, it's trivial to switch to a different compiler. Quite helpful for an early narrowing of a bisect range.

Please prefix regressions with [Reg 2.07x], i.e. the version number that first contains the regression, use the upcoming major version for regressions against master. This makes it simple to see which versions are affected by a certain bug.

--