www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 6315] New: Compiling typed named enum with -g switch yelds an error.

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

           Summary: Compiling typed named enum with -g switch yelds an
                    error.
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: kajetan.rzepecki+puremagic gmail.com



05:55:54 PDT ---
Tested with DMD 2.054 on Win32. Didn't happen in DMD 2.053.

enum : string {        //OK
      A = "A",
}
enum Enum : string {
     B = "B",           //Error: Integer constant expression expected instead
of "B".
}
void main() {}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 14 2011
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6315


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |k.hara.pg gmail.com



This is cv4_Denum function problem in tocvdebug.c.
It calls enum member's toInteger().

And, in local, same error occurs with 'dmd-2.053' tag.
Maybe this is not 2.054 regression.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 16 2011
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6315


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |r.sagitario gmx.de
         Resolution|                            |DUPLICATE



PDT ---
There is already a simple patch in report 5985, but maybe a pull request is
needed nowadays.

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

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