LDC 1.0.0-alpha1 has been released! Please help testing!

Andrea Fontana via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Mon Feb 29 03:51:31 PST 2016


On Friday, 26 February 2016 at 21:12:43 UTC, Kai Nacke wrote:
> Again, we need to help to test this alpha release! Every 
> feedback is welcomed!


It takes me a lot to understand what's wrong in a parser code.
I finally reduced code to this:

size_t inc(size_t* v)
{
    (*v)++;
    return 10;
}

size_t pos = 10;
	
immutable tst = pos + inc(&pos); // <-- this
writeln(tst);
writeln(pos);

The marked line was an unintended mistake inside original code.
Anyway it gives different result with dmd and ldc2 1.0. I neither 
know if is a undefined behaviour.







More information about the digitalmars-d-ldc mailing list