On Thursday, 15 September 2016 at 13:54:44 UTC, deed wrote:
void main ()
{
    new int[](1);
}

Compiles with dmd 2.071.2-b2, but no code is generated for `new int[](1);`.
Caused a bug due to:

char[] arr;
got updated to
char[] arr; new char[](SIZE);

If it's considered a bug and someone would file it, I'd be thankful.

Wat ? I don't understand you !

you forget the right hand side that's all:

    int[] array = new int[1];

!!
  • Re: bug? koia via Digitalmars-d-learn
    • Re: bug? Daniel Kozak via Digitalmars-d-learn
    • Re: bug? deed via Digitalmars-d-learn
      • Re: bug? Jonathan M Davis via Digitalmars-d-learn
      • Re: bug? deed via Digitalmars-d-learn
        • Re: bug? Jonathan M Davis via Digitalmars-d-learn
          • Re: bug? Jonathan M Davis via Digitalmars-d-learn

Reply via email to