[Issue 7719] enum forward reference error when enum is in braces

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Mar 16 17:12:50 PDT 2012


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



--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2012-03-16 17:13:03 PDT ---
There are more issues with these enums inside of brackets. Right now I'm having
the weirdest errors where referencing these enums doesn't work from a class
defined below it:

enum
{
    wxUSER_ATTENTION_INFO = 1,
    wxUSER_ATTENTION_ERROR = 2,
}

If they're each defined separately:
enum wxUSER_ATTENTION_INFO = 1;
enum wxUSER_ATTENTION_ERROR = 2;

then it works. I don't have a minimal test-case for this now (working on it),
but there's obviously some issues with the implementation.

-- 
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