Files
ldc/dmd2
kai bbdf473ef0 Fix for issue #326.
For a foreach (int i, dchar c; str) loop the compiler generates a
delegate with a different type signature then the runtime uses.
The runtime declares the parameters as void* and passes a pointer
to a size_t variable for the index. The code generated by the
compiler expects a ref int. This works on a little endian architecture,
but on a big endian architecture the index is always 0.
This fix changes the parameter type of the passed index to size_t
and generates a cast to the type specified by the user.
2013-04-11 08:23:33 +02:00
..
2013-03-09 19:23:33 +01:00
2013-03-06 18:18:56 +01:00
2013-03-06 18:18:56 +01:00
2012-09-07 03:51:31 +02:00
2013-01-04 06:22:53 +01:00
2013-03-06 18:18:56 +01:00
2012-09-07 03:51:31 +02:00
2013-01-04 06:22:53 +01:00
2013-03-06 18:18:56 +01:00
2013-03-06 18:18:56 +01:00
2013-01-04 06:22:53 +01:00
2012-09-07 03:51:31 +02:00
2013-03-06 18:18:56 +01:00
2013-03-06 18:18:56 +01:00
2013-03-06 18:18:56 +01:00
2012-04-05 15:30:00 +04:00
2013-01-04 06:22:53 +01:00
2012-04-22 12:10:47 +04:00
2013-03-06 18:18:56 +01:00
2013-01-04 06:22:53 +01:00
2013-03-06 18:18:56 +01:00
2013-03-06 18:18:56 +01:00
2013-03-06 18:18:56 +01:00
2013-01-04 06:22:53 +01:00
2013-03-06 18:18:56 +01:00
2013-03-06 18:18:56 +01:00
2012-09-07 03:51:31 +02:00
2013-01-04 06:22:53 +01:00
2013-03-06 18:18:56 +01:00
2013-03-06 18:18:56 +01:00
2013-03-31 05:01:40 +02:00
2013-03-06 18:18:56 +01:00
2013-03-06 18:18:56 +01:00
2013-03-06 18:18:56 +01:00
2012-04-05 15:30:00 +04:00
2012-04-05 15:30:00 +04:00
2012-04-05 15:30:00 +04:00
2013-01-04 06:22:53 +01:00
2013-03-06 18:18:56 +01:00
2013-03-06 18:18:56 +01:00
2013-01-04 06:22:53 +01:00
2013-03-06 18:18:56 +01:00
2013-03-06 18:18:56 +01:00
2013-03-06 18:18:56 +01:00
2013-01-04 06:22:53 +01:00
2013-01-04 06:22:53 +01:00
2013-01-04 06:22:53 +01:00
2013-01-04 06:22:53 +01:00
2013-03-06 18:18:56 +01:00
2013-03-06 18:18:56 +01:00
2013-03-06 18:18:56 +01:00
2013-01-04 06:22:53 +01:00
2013-01-04 06:22:53 +01:00
2013-01-04 06:22:53 +01:00
2013-01-04 06:22:53 +01:00
2013-03-06 18:18:56 +01:00
2013-03-06 18:18:56 +01:00
2013-03-06 18:18:56 +01:00
2013-03-06 18:18:56 +01:00
2013-03-06 18:18:56 +01:00
2013-03-06 18:18:56 +01:00
2013-03-06 18:18:56 +01:00
2013-03-06 18:18:56 +01:00
2013-01-04 06:22:53 +01:00
2012-09-07 03:51:31 +02:00
2013-03-06 18:18:56 +01:00
2013-03-06 18:18:56 +01:00
2013-04-11 08:23:33 +02:00
2013-03-06 18:18:56 +01:00
2013-03-06 18:18:56 +01:00
2013-03-18 13:05:04 +01:00
2013-03-06 18:18:56 +01:00
2013-03-06 18:18:56 +01:00
2012-09-07 03:51:31 +02:00
2013-03-06 18:18:56 +01:00
2013-03-06 18:18:56 +01:00

		The D Programming Language
		Compiler Front End Source
		Copyright (c) 1999-2009, by Digital Mars
		http://www.digitalmars.com
		All Rights Reserved


This is the source code to the front end Digital Mars D compiler.
It covers the lexical analysis, parsing, and semantic analysis
of the D Programming Language defined in the documents at
http://www.digitalmars.com/d/

These sources are free, they are redistributable and modifiable
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 1, or (at your option)
any later version (attached as gpl.txt),
or the Artistic License (attached as artistic.txt).

The optimizer and code generator sources are 
covered under a separate license, backendlicense.txt.

It does not apply to anything else distributed by Digital Mars,
including D compiler executables.

-Walter Bright