Thread overview
[Issue 5985] New: string enum fails with debugging enabled
May 11, 2011
Jesse Phillips
May 14, 2011
Rainer Schuetze
Jul 16, 2011
Rainer Schuetze
Jul 17, 2011
Rainer Schuetze
Nov 16, 2011
Jesse Phillips
May 11, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5985

           Summary: string enum fails with debugging enabled
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: Jesse.K.Phillips+D@gmail.com
                CC: Jesse.K.Phillips+D@gmail.com


--- Comment #0 from Jesse Phillips <Jesse.K.Phillips+D@gmail.com> 2011-05-11 15:14:48 PDT ---
Compilation will fail if -g or -gc is used:

break.d(2): Error: Integer constant expression expected instead of "one"
break.d(2): Error: Integer constant expression expected instead of "one"

enum Test : string {
    one = "one"
}
void main() {
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 14, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5985


Rainer Schuetze <r.sagitario@gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch
                 CC|                            |r.sagitario@gmx.de


--- Comment #1 from Rainer Schuetze <r.sagitario@gmx.de> 2011-05-14 05:22:56 PDT ---
dmd should not try to output a string enumerator type record, it is marked as incomplete anyway. Here's the patch

https://github.com/rainers/dmd/commit/9d69feb17f075757c9e6874f64b201fa2f40d5b0

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 16, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5985


Rainer Schuetze <r.sagitario@gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kajetan.rzepecki+puremagic@
                   |                            |gmail.com


--- Comment #3 from Rainer Schuetze <r.sagitario@gmx.de> 2011-07-16 06:09:03 PDT ---
*** Issue 6315 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 17, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5985



--- Comment #4 from Rainer Schuetze <r.sagitario@gmx.de> 2011-07-17 01:11:03 PDT ---
https://github.com/D-Programming-Language/dmd/pull/257

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
November 16, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5985


Jesse Phillips <Jesse.K.Phillips+D@gmail.com> changed:

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


--- Comment #5 from Jesse Phillips <Jesse.K.Phillips+D@gmail.com> 2011-11-16 09:04:05 PST ---
Looks like there is an older report on this.

*** This issue has been marked as a duplicate of issue 5168 ***

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