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

briancsch...@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |briancsch...@gmail.com

--- Comment #3 from briancsch...@gmail.com ---
I wrote a D-Scanner rule for this:

void testAsm()
{
    asm    {
        mov RAX, a[1];
    }
}

test.d(4:18)[warn]: This is confusing because it looks like an array index.
Rewrite a[1] as [a + 1] to clarify.

--

Reply via email to