[Issue 6564] enum with no initializer compiles

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jan 30 21:59:17 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=6564


yebblies <yebblies at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |yebblies at gmail.com
         Resolution|                            |INVALID


--- Comment #1 from yebblies <yebblies at gmail.com> 2012-01-31 16:59:16 EST ---
enum Length; is a forward declaration to an enum type defined elsewhere.

eg.
--- x.d ---
enum Length
{
 ... members ...
}

--- x.di ---
enum Length;

Not sure this is the greatest thing to allow, but it is correct according to
the spec.  Please open an enhancement request to disallow forward declarations
of enums is you think this is desirable.

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


More information about the Digitalmars-d-bugs mailing list