https://issues.dlang.org/show_bug.cgi?id=19674

Iain Buclaw <ibuc...@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ibuc...@gdcproject.org

--- Comment #2 from Iain Buclaw <ibuc...@gdcproject.org> ---
A frame gets created in main() with both 'a' vars as fields.

(gdb) pt this
type = struct FRAME.D main {
    int [] a;
    int [] a;
} * const

(gdb) p *this
$1 = {a = {3, 3}, a = 0x0}


However, looks like only one add() is sent to the code generation phase to be
emitted.

In this case, the first add(), which only appends to the first field in the
frame.

Two functions should be generated, though need to avoid the pitfall of
conflicting symbols.

--

Reply via email to