[Issue 11849] Recursive enum causes segfault

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jan 3 07:05:21 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=11849



--- Comment #3 from Kenji Hara <k.hara.pg at gmail.com> 2014-01-03 07:05:13 PST ---
(In reply to comment #2)
> (In reply to comment #1)
> > https://github.com/D-Programming-Language/dmd/pull/3057
> 
> Does that pull request handle the second case:
> 
> enum : DWORD
> {
>     DWORD = REG_DWORD
> }
> 
> I don't see an explicit test for that case.

Do you mean this full test case?

module test;

alias DWORD = uint; // L3 first definition of 'test.DWORD'

enum : DWORD
{
    REG_DWORD = 4
}

enum : DWORD
{
    DWORD = REG_DWORD   // L12 second definition of 'test.DWORD'
}

Output:
test.d(12): Error: enum member test.DWORD conflicts with alias test.DWORD at
test.d(3)

There's no "recursive" definition, so that's not directly related to the
reported segfault issue.

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


More information about the Digitalmars-d-bugs mailing list