Thread overview
[Issue 7269] New: Named string enum cannot compile with -g
Jan 11, 2012
simendsjo
Jan 11, 2012
simendsjo
Feb 10, 2013
Andrej Mitrovic
January 11, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7269

           Summary: Named string enum cannot compile with -g
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: simendsjo@gmail.com


--- Comment #0 from simendsjo <simendsjo@gmail.com> 2012-01-10 23:11:52 PST ---
enum E : string {
    A = "a"
}
void main() {}

dmd -g

err.d(2): Error: Integer constant expression expected instead of "a"
err.d(2): Error: Integer constant expression expected instead of "a"

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 11, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7269



--- Comment #1 from simendsjo <simendsjo@gmail.com> 2012-01-11 06:48:51 PST ---
.. For dmd 2.057. I haven't checked other versions.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 11, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7269


bearophile_hugs@eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs@eml.cc


--- Comment #2 from bearophile_hugs@eml.cc 2012-01-11 09:51:01 PST ---
(In reply to comment #1)
> .. For dmd 2.057. I haven't checked other versions.

The same problem is present with DMD 2.058head.

But maybe this issue is dupe.

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


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |andrej.mitrovich@gmail.com
         Resolution|                            |WORKSFORME


--- Comment #3 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-02-09 21:39:15 PST ---
Fixed in 2.061. This is a dupe of another report.

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