Thread overview
[Issue 3645] New: manifest constant (enum) crashes dmd
Dec 24, 2009
Stephan Dilly
Dec 24, 2009
Stephan Dilly
Dec 24, 2009
Walter Bright
Dec 25, 2009
Leandro Lucarella
Dec 31, 2009
Walter Bright
December 24, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3645

           Summary: manifest constant (enum) crashes dmd
           Product: D
           Version: 2.036
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: spam@extrawurst.org


--- Comment #0 from Stephan Dilly <spam@extrawurst.org> 2009-12-24 05:30:11 PST ---
version is 2.037 but it is not available in bugzilla.

[CODE]
import std.stdio;

struct Foo
{
    public int foo()
    {
        return 2;
    }
}

void main()
{
    Foo bar;
    enum bla = bar.foo(); //crash
}
[/CODE]

this enum declration gives no error or anything but crashes dmd (2.037) while compiling with no options set.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 24, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3645


Stephan Dilly <spam@extrawurst.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
                 CC|                            |spam@extrawurst.org
           Severity|major                       |regression


--- Comment #1 from Stephan Dilly <spam@extrawurst.org> 2009-12-24 05:33:56 PST ---
ok investigated more and it turns out this bug is really a regression since dmd2036. with dmd2035 the code worked as expected and did not crash dmd.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 24, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3645


Walter Bright <bugzilla@digitalmars.com> changed:

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


--- Comment #2 from Walter Bright <bugzilla@digitalmars.com> 2009-12-24 15:45:48 PST ---
Changeset 310.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 25, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3645


Leandro Lucarella <llucax@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |llucax@gmail.com


--- Comment #3 from Leandro Lucarella <llucax@gmail.com> 2009-12-25 09:59:37 PST ---
http://www.dsource.org/projects/dmd/changeset/310

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 31, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3645


Walter Bright <bugzilla@digitalmars.com> changed:

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


--- Comment #4 from Walter Bright <bugzilla@digitalmars.com> 2009-12-31 11:18:08 PST ---
Fixed dmd 1.054 and 2.038

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