October 21
https://bugzilla.gdcproject.org/show_bug.cgi?id=275

Sebastien Alaiwan <sebastien.alaiwan@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sebastien.alaiwan@gmail.com

--- Comment #1 from Sebastien Alaiwan <sebastien.alaiwan@gmail.com> ---
(inline the attachment for convenience)

int main()
{
  auto tab = [1];
  assert(tab == tab[] + 1);
  return 0;
}

-- 
You are receiving this mail because:
You are watching all bug changes.
October 21
https://bugzilla.gdcproject.org/show_bug.cgi?id=275

Johannes Pfau <johannespfau@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |johannespfau@gmail.com
         Resolution|---                         |UPSTREAM

--- Comment #2 from Johannes Pfau <johannespfau@gmail.com> ---
This example no longer compiles with a recent frontend / GDC git master:

test.d:4:17: error: array operation tab[] + 1 without destination memory not
allowed
   assert(tab == tab[] + 1);
                 ^

The frontend probably did not validate this code correctly in earlier releases. I assume this is a reduced test case? It's possible there's a bug in GDC which will be exposed by the original, non-reduced test.

If you can still reproduce this bug with recent GDC git versions, please reopen and attach a test case to reproduce the bug with recent GDC versions.

-- 
You are receiving this mail because:
You are watching all bug changes.