changeset 1535:20d8ee6523e1

updated to DMD-1.013
author thomask
date Mon, 07 May 2007 05:19:57 +0000
parents 345207906be7
children 89775df1607d
files compile/f/foreach_30_A.d compile/f/foreach_30_B.d compile/i/inerpret_05_B.d compile/r/return_10_A.d nocompile/b/bug_expression_5981_B.d nocompile/bug_20041103_C.d nocompile/c/continue_03_A.d nocompile/c/continue_03_B.d nocompile/cast_10.d nocompile/i/inout_01.d nocompile/o/opAssign_01_A.d nocompile/o/opAssign_01_B.d run/b/bug_declaration_440_A.d run/b/bug_declaration_440_B.d run/b/bug_declaration_440_C.d run/c/const_28_A.d run/c/const_28_B.d run/c/const_28_C.d run/c/const_28_D.d run/c/const_28_E.d run/c/const_28_G.d run/c/const_28_H.d run/c/continue_04_A.d run/c/continue_04_B.d run/c/continue_04_E.d run/delegate_01.d run/f/for_06_A.d run/f/for_06_E.d run/f/for_06_F.d run/f/for_06_G.d run/foreach_10.d run/foreach_13.d run/foreach_15.d run/i/inout_02_A.d run/inline_05.d run/nested_function_04.d run/o/odd_bug_04_A.d run/o/odd_bug_04_B.d run/o/odd_bug_04_C.d run/o/odd_bug_04_D.d run/o/odd_bug_04_E.d run/o/odd_bug_04_F.d run/odd_bug_02.d run/t/tuple_20_A.d run/v/volatile_01_A.d run/v/volatile_01_B.d run/v/volatile_02_A.d run/v/volatile_02_B.d run/v/volatile_02_C.d run/v/volatile_02_D.d
diffstat 50 files changed, 49 insertions(+), 65 deletions(-) [+]
line wrap: on
line diff
--- a/compile/f/foreach_30_A.d	Mon May 07 05:19:35 2007 +0000
+++ b/compile/f/foreach_30_A.d	Mon May 07 05:19:57 2007 +0000
@@ -9,7 +9,7 @@
 module dstress.compile.f.foreach_30_A;
 
 class Collection{
-	int opApply(int delegate(inout int) dg){
+	int opApply(int delegate(ref int) dg){
 		return 0;
 	}
 }
--- a/compile/f/foreach_30_B.d	Mon May 07 05:19:35 2007 +0000
+++ b/compile/f/foreach_30_B.d	Mon May 07 05:19:57 2007 +0000
@@ -9,7 +9,7 @@
 module dstress.compile.f.foreach_30_B;
 
 class Collection{
-	int opApply(int delegate(inout int) dg){
+	int opApply(int delegate(ref int) dg){
 		return 0;
 	}
 }
--- a/compile/i/inerpret_05_B.d	Mon May 07 05:19:35 2007 +0000
+++ b/compile/i/inerpret_05_B.d	Mon May 07 05:19:57 2007 +0000
@@ -9,7 +9,7 @@
 
 module dstress.compile.i.interpret_05_B;
 
-void bar(inout int x){
+void bar(ref int x){
 	x = 2;
 }
 
--- a/compile/r/return_10_A.d	Mon May 07 05:19:35 2007 +0000
+++ b/compile/r/return_10_A.d	Mon May 07 05:19:57 2007 +0000
@@ -10,7 +10,7 @@
 module dstress.compile.r.return_10_A;
 
 void foo(){
-	int nothing( int delegate(inout int) dg ){
+	int nothing( int delegate(ref int) dg ){
 		return 0;
 	}
 
--- a/nocompile/b/bug_expression_5981_B.d	Mon May 07 05:19:35 2007 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,16 +0,0 @@
-// $HeadURL$
-// $Date$
-// $Author$
-
-// @author@	Kazuhiro Inaba <kinaba@is.s.u-tokyo.ac.jp>
-// @date@	2006-12-03
-// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=641
-// @desc@	[Issue 641] New: Complex string operations in template argument ICEs dmd
-
-// __DSTRESS_ELINE__ 14
-
-module dstress.nocompile.b.bug_expression_5981_B;
-
-void foo(){
-	auto x = ([""]~[])[0];
-}
--- a/nocompile/bug_20041103_C.d	Mon May 07 05:19:35 2007 +0000
+++ b/nocompile/bug_20041103_C.d	Mon May 07 05:19:57 2007 +0000
@@ -11,7 +11,7 @@
 
 module dstress.nocompile.bug_20041103_C;
 
-char rot13_c(inout char ret){
+char rot13_c(ref char ret){
 	if(ret > 'A'-1 && ret < 'N'){
 		ret += 13;
 	}else if(ret > 'M' && ret < 'Z'+1){
--- a/nocompile/c/continue_03_A.d	Mon May 07 05:19:35 2007 +0000
+++ b/nocompile/c/continue_03_A.d	Mon May 07 05:19:57 2007 +0000
@@ -13,7 +13,7 @@
 module dstress.nocompile.c.continue_03_A;
 
 class Stream{
-	int opApply(int delegate(inout char[] line) dg){
+	int opApply(int delegate(ref char[] line) dg){
 	}
 }
 
--- a/nocompile/c/continue_03_B.d	Mon May 07 05:19:35 2007 +0000
+++ b/nocompile/c/continue_03_B.d	Mon May 07 05:19:57 2007 +0000
@@ -13,7 +13,7 @@
 module dstress.nocompile.c.continue_03_B;
 
 class Stream{
-	int opApply(int delegate(inout char[] line) dg){
+	int opApply(int delegate(ref char[] line) dg){
 	}
 }
 
--- a/nocompile/cast_10.d	Mon May 07 05:19:35 2007 +0000
+++ b/nocompile/cast_10.d	Mon May 07 05:19:57 2007 +0000
@@ -17,7 +17,7 @@
 class Child : Parent {
 }
 
-void test(inout Parent p){
+void test(ref Parent p){
 }
 
 int main(){
--- a/nocompile/i/inout_01.d	Mon May 07 05:19:35 2007 +0000
+++ b/nocompile/i/inout_01.d	Mon May 07 05:19:57 2007 +0000
@@ -10,7 +10,7 @@
 
 module dstress.nocompile.i.inout_01;
 
-void test(inout byte i){
+void test(ref byte i){
 	i++;
 }
 
--- a/nocompile/o/opAssign_01_A.d	Mon May 07 05:19:35 2007 +0000
+++ b/nocompile/o/opAssign_01_A.d	Mon May 07 05:19:57 2007 +0000
@@ -8,7 +8,7 @@
 
 module dstress.nocompile.o.opAssign_01_A;
 
-void func(inout int[] x){
+void func(ref int[] x){
 }
 
 void main(){
--- a/nocompile/o/opAssign_01_B.d	Mon May 07 05:19:35 2007 +0000
+++ b/nocompile/o/opAssign_01_B.d	Mon May 07 05:19:57 2007 +0000
@@ -8,7 +8,7 @@
 
 module dstress.nocompile.o.opAssign_01_B;
 
-void func(inout int x){
+void func(ref int x){
 }
 
 void main(){
--- a/run/b/bug_declaration_440_A.d	Mon May 07 05:19:35 2007 +0000
+++ b/run/b/bug_declaration_440_A.d	Mon May 07 05:19:57 2007 +0000
@@ -12,7 +12,7 @@
 int[] status;
 
 class Container {
-	int opApply (int delegate (inout int) dg) {
+	int opApply (int delegate (ref int) dg) {
 		int counter = 3;
 		dg(counter);
 		counter--;
--- a/run/b/bug_declaration_440_B.d	Mon May 07 05:19:35 2007 +0000
+++ b/run/b/bug_declaration_440_B.d	Mon May 07 05:19:57 2007 +0000
@@ -12,7 +12,7 @@
 int[] status;
 
 class Container {
-	int opApply (int delegate (inout int) dg) {
+	int opApply (int delegate (ref int) dg) {
 		int counter = 3;
 		dg(counter);
 		counter--;
--- a/run/b/bug_declaration_440_C.d	Mon May 07 05:19:35 2007 +0000
+++ b/run/b/bug_declaration_440_C.d	Mon May 07 05:19:57 2007 +0000
@@ -12,7 +12,7 @@
 int[] status;
 
 class Container {
-	int opApply (int delegate (inout int) dg) {
+	int opApply (int delegate (ref int) dg) {
 		int counter = 3;
 		dg(counter);
 		counter--;
--- a/run/c/const_28_A.d	Mon May 07 05:19:35 2007 +0000
+++ b/run/c/const_28_A.d	Mon May 07 05:19:57 2007 +0000
@@ -16,7 +16,7 @@
 	int[arity] data;
 }
 
-void init(inout Leaf* leaf){
+void init(ref Leaf* leaf){
 	leaf= new Leaf;
 }
 
--- a/run/c/const_28_B.d	Mon May 07 05:19:35 2007 +0000
+++ b/run/c/const_28_B.d	Mon May 07 05:19:57 2007 +0000
@@ -16,7 +16,7 @@
 	int[arity] data;
 }
 
-void init(inout Leaf* leaf){
+void init(ref Leaf* leaf){
 	leaf= new Leaf;
 }
 
--- a/run/c/const_28_C.d	Mon May 07 05:19:35 2007 +0000
+++ b/run/c/const_28_C.d	Mon May 07 05:19:57 2007 +0000
@@ -16,7 +16,7 @@
 	int[arity] data;
 }
 
-void init(inout Leaf* leaf){
+void init(ref Leaf* leaf){
 	leaf= new Leaf;
 }
 
--- a/run/c/const_28_D.d	Mon May 07 05:19:35 2007 +0000
+++ b/run/c/const_28_D.d	Mon May 07 05:19:57 2007 +0000
@@ -16,7 +16,7 @@
 	int[arity] data;
 }
 
-void init(inout Leaf* leaf){
+void init(ref Leaf* leaf){
 	leaf= new Leaf;
 }
 
--- a/run/c/const_28_E.d	Mon May 07 05:19:35 2007 +0000
+++ b/run/c/const_28_E.d	Mon May 07 05:19:57 2007 +0000
@@ -16,7 +16,7 @@
 	int[arity] data;
 }
 
-void init(inout Leaf* leaf){
+void init(ref Leaf* leaf){
 	leaf= new Leaf;
 }
 
--- a/run/c/const_28_G.d	Mon May 07 05:19:35 2007 +0000
+++ b/run/c/const_28_G.d	Mon May 07 05:19:57 2007 +0000
@@ -16,7 +16,7 @@
 	int[arity] data = void;
 }
 
-void init(inout Leaf* leaf){
+void init(ref Leaf* leaf){
 	leaf= new Leaf;
 }
 
--- a/run/c/const_28_H.d	Mon May 07 05:19:35 2007 +0000
+++ b/run/c/const_28_H.d	Mon May 07 05:19:57 2007 +0000
@@ -14,7 +14,7 @@
 	int[arity] data = void;
 }
 
-void init(inout Leaf* leaf){
+void init(ref Leaf* leaf){
 	leaf= new Leaf;
 }
 
--- a/run/c/continue_04_A.d	Mon May 07 05:19:35 2007 +0000
+++ b/run/c/continue_04_A.d	Mon May 07 05:19:57 2007 +0000
@@ -9,7 +9,7 @@
 module dstress.run.c.continue_04_A;
 
 struct MyStruct{
-	int opApply(int delegate(inout int i) dg){
+	int opApply(int delegate(ref int i) dg){
 		for(int index=0; index < 3; index++){
 			dg(index);
 		}
--- a/run/c/continue_04_B.d	Mon May 07 05:19:35 2007 +0000
+++ b/run/c/continue_04_B.d	Mon May 07 05:19:57 2007 +0000
@@ -9,7 +9,7 @@
 module dstress.run.c.continue_04_B;
 
 struct MyStruct{
-	int opApply(int delegate(inout int i) dg){
+	int opApply(int delegate(ref int i) dg){
 		for(int index=0; index < 3; index++){
 			dg(index);
 		}
--- a/run/c/continue_04_E.d	Mon May 07 05:19:35 2007 +0000
+++ b/run/c/continue_04_E.d	Mon May 07 05:19:57 2007 +0000
@@ -9,7 +9,7 @@
 module dstress.run.c.continue_04_E;
 
 struct MyStruct{
-	int opApply(int delegate(inout int i) dg){
+	int opApply(int delegate(ref int i) dg){
 		for(int index=0; index < 3; index++){
 			dg(index);
 		}
--- a/run/delegate_01.d	Mon May 07 05:19:35 2007 +0000
+++ b/run/delegate_01.d	Mon May 07 05:19:57 2007 +0000
@@ -11,7 +11,7 @@
 struct List(T){
 	T[] S;
 
-	void bug(void delegate(inout T) f){
+	void bug(void delegate(ref T) f){
 		f(S[0]);
 	}
 }
--- a/run/f/for_06_A.d	Mon May 07 05:19:35 2007 +0000
+++ b/run/f/for_06_A.d	Mon May 07 05:19:57 2007 +0000
@@ -8,7 +8,7 @@
 
 module dstress.run.f.for_06_A;
 
-int foo(inout real[] arr) {
+int foo(ref real[] arr) {
 	size_t i = 1;
 	int counter;
 
--- a/run/f/for_06_E.d	Mon May 07 05:19:35 2007 +0000
+++ b/run/f/for_06_E.d	Mon May 07 05:19:57 2007 +0000
@@ -8,7 +8,7 @@
 
 module dstress.run.f.for_06_E;
 
-int foo(inout real[] arr) {
+int foo(ref real[] arr) {
 	size_t i = 2;
 	int counter;
 
--- a/run/f/for_06_F.d	Mon May 07 05:19:35 2007 +0000
+++ b/run/f/for_06_F.d	Mon May 07 05:19:57 2007 +0000
@@ -8,7 +8,7 @@
 
 module dstress.run.f.for_06_F;
 
-int foo(inout real[] arr) {
+int foo(ref real[] arr) {
 	size_t i = 1;
 	int counter;
 
--- a/run/f/for_06_G.d	Mon May 07 05:19:35 2007 +0000
+++ b/run/f/for_06_G.d	Mon May 07 05:19:57 2007 +0000
@@ -8,7 +8,7 @@
 
 module dstress.run.f.for_06_G;
 
-int foo(inout real[] arr) {
+int foo(ref real[] arr) {
 	size_t i = 1;
 	int counter;
 
--- a/run/foreach_10.d	Mon May 07 05:19:35 2007 +0000
+++ b/run/foreach_10.d	Mon May 07 05:19:57 2007 +0000
@@ -14,7 +14,7 @@
 		array[2]=8.0;
 	}
 	
-	int opApply(int delegate(inout double) dg){
+	int opApply(int delegate(ref double) dg){
 		double result;
 		for(int i=0; i<array.length; i++){
 			result = dg(array[i]);
--- a/run/foreach_13.d	Mon May 07 05:19:35 2007 +0000
+++ b/run/foreach_13.d	Mon May 07 05:19:57 2007 +0000
@@ -11,7 +11,7 @@
 	assert(array[0]=='a');
 	assert(array[1]=='b');
 	assert(array[2]=='c');
-	foreach(inout char value; array){
+	foreach(ref char value; array){
 		count++;
 		value++;
 	}
--- a/run/foreach_15.d	Mon May 07 05:19:35 2007 +0000
+++ b/run/foreach_15.d	Mon May 07 05:19:57 2007 +0000
@@ -14,7 +14,7 @@
 	assert(array[0]=='a');
 	assert(array[1]=='b');
 	assert(array[2]=='c');
-	foreach(inout char value; array){
+	foreach(ref char value; array){
 		count++;
 		value++;
 	}
--- a/run/i/inout_02_A.d	Mon May 07 05:19:35 2007 +0000
+++ b/run/i/inout_02_A.d	Mon May 07 05:19:57 2007 +0000
@@ -13,7 +13,7 @@
 }
 
 version(runTest){
-	void fn(inout byte val){
+	void fn(ref byte val){
 		asm{
 			mov EAX, val;
 			inc [EAX];
--- a/run/inline_05.d	Mon May 07 05:19:35 2007 +0000
+++ b/run/inline_05.d	Mon May 07 05:19:57 2007 +0000
@@ -19,7 +19,7 @@
 
 	MyStruct bar(){
 		MyStruct v;
-		foreach (inout int f; v.x){
+		foreach (ref int f; v.x){
 			f=0;
 		}
 		return v;
--- a/run/nested_function_04.d	Mon May 07 05:19:35 2007 +0000
+++ b/run/nested_function_04.d	Mon May 07 05:19:57 2007 +0000
@@ -9,7 +9,7 @@
 
 module dstress.run.nested_function_04;
 
-void fn( inout char[] buf ){
+void fn( ref char[] buf ){
 	void fn2(){
 		assert(buf.length==0);
 		assert(buf.sizeof== 2 * size_t.sizeof);
--- a/run/o/odd_bug_04_A.d	Mon May 07 05:19:35 2007 +0000
+++ b/run/o/odd_bug_04_A.d	Mon May 07 05:19:57 2007 +0000
@@ -9,7 +9,7 @@
 module dstress.run.o.odd_bug_04_A;
 
 abstract class Container(V) {
-	abstract int opApply(int delegate(inout V) dg);
+	abstract int opApply(int delegate(ref V) dg);
 }
 
 abstract class MutableList(V): Container!(V) {
--- a/run/o/odd_bug_04_B.d	Mon May 07 05:19:35 2007 +0000
+++ b/run/o/odd_bug_04_B.d	Mon May 07 05:19:57 2007 +0000
@@ -9,7 +9,7 @@
 module dstress.run.o.odd_bug_04_B;
 
 abstract class Container(V) {
-	abstract int opApply(int delegate(inout V) dg);
+	abstract int opApply(int delegate(ref V) dg);
 }
 
 abstract class MutableList(V): Container!(V) {
--- a/run/o/odd_bug_04_C.d	Mon May 07 05:19:35 2007 +0000
+++ b/run/o/odd_bug_04_C.d	Mon May 07 05:19:57 2007 +0000
@@ -9,7 +9,7 @@
 module dstress.run.o.odd_bug_04_C;
 
 abstract class Container(V) {
-	abstract int opApply(int delegate(inout V) dg);
+	abstract int opApply(int delegate(ref V) dg);
 }
 
 abstract class MutableList(V): Container!(V) {
--- a/run/o/odd_bug_04_D.d	Mon May 07 05:19:35 2007 +0000
+++ b/run/o/odd_bug_04_D.d	Mon May 07 05:19:57 2007 +0000
@@ -9,7 +9,7 @@
 module dstress.run.o.odd_bug_04_D;
 
 abstract class Container(V) {
-	abstract int opApply(int delegate(inout V) dg);
+	abstract int opApply(int delegate(ref V) dg);
 }
 
 abstract class MutableList(V): Container!(V) {
--- a/run/o/odd_bug_04_E.d	Mon May 07 05:19:35 2007 +0000
+++ b/run/o/odd_bug_04_E.d	Mon May 07 05:19:57 2007 +0000
@@ -9,7 +9,7 @@
 module dstress.run.o.odd_bug_04_E;
 
 abstract class Container(V) {
-	abstract int opApply(int delegate(inout V) dg);
+	abstract int opApply(int delegate(ref V) dg);
 }
 
 abstract class MutableList(V): Container!(V) {
--- a/run/o/odd_bug_04_F.d	Mon May 07 05:19:35 2007 +0000
+++ b/run/o/odd_bug_04_F.d	Mon May 07 05:19:57 2007 +0000
@@ -9,7 +9,7 @@
 module dstress.run.o.odd_bug_04_E;
 
 abstract class Container(V) {
-	abstract int opApply(int delegate(inout V) dg);
+	abstract int opApply(int delegate(ref V) dg);
 }
 
 abstract class MutableList(V): Container!(V) {
--- a/run/odd_bug_02.d	Mon May 07 05:19:35 2007 +0000
+++ b/run/odd_bug_02.d	Mon May 07 05:19:57 2007 +0000
@@ -29,7 +29,7 @@
 		assert(left is null);
 	}
 
-	int opApply(int delegate(inout int val) dg){
+	int opApply(int delegate(ref int val) dg){
 		return 0;
 	}
 
--- a/run/t/tuple_20_A.d	Mon May 07 05:19:35 2007 +0000
+++ b/run/t/tuple_20_A.d	Mon May 07 05:19:57 2007 +0000
@@ -16,7 +16,7 @@
 		x += t[0];
 	}
 
-	void get(inout T t){
+	void get(ref T t){
 		x *= t[0];
 	}
 }
--- a/run/v/volatile_01_A.d	Mon May 07 05:19:35 2007 +0000
+++ b/run/v/volatile_01_A.d	Mon May 07 05:19:57 2007 +0000
@@ -9,7 +9,7 @@
 module dstress.run.v.volatile_01_A;
 
 template load( T, int i, size_t sizeofT : 4 = T.sizeof ){
-	T load( inout T val ){
+	T load( ref T val ){
 		volatile asm{
 			naked;
 			mov EAX, [EAX];
--- a/run/v/volatile_01_B.d	Mon May 07 05:19:35 2007 +0000
+++ b/run/v/volatile_01_B.d	Mon May 07 05:19:57 2007 +0000
@@ -9,7 +9,7 @@
 module dstress.run.v.volatile_01_B;
 
 template load( T, int i, size_t sizeofT : 4 = T.sizeof ){
-	T load( inout T val ){
+	T load( ref T val ){
 		asm{
 			naked;
 			mov EAX, [EAX];
--- a/run/v/volatile_02_A.d	Mon May 07 05:19:35 2007 +0000
+++ b/run/v/volatile_02_A.d	Mon May 07 05:19:57 2007 +0000
@@ -9,7 +9,7 @@
 module dstress.run.v.volatile_02_A;
 
 template atomicLoad( T ){
-	T atomicLoad( inout T val ){
+	T atomicLoad( ref T val ){
 		volatile{
 			return val;
 		}
--- a/run/v/volatile_02_B.d	Mon May 07 05:19:35 2007 +0000
+++ b/run/v/volatile_02_B.d	Mon May 07 05:19:57 2007 +0000
@@ -9,7 +9,7 @@
 module dstress.run.v.volatile_02_B;
 
 template atomicLoad( T ){
-	T atomicLoad( inout T val ){
+	T atomicLoad( ref T val ){
 		volatile{
 			return val;
 		}
--- a/run/v/volatile_02_C.d	Mon May 07 05:19:35 2007 +0000
+++ b/run/v/volatile_02_C.d	Mon May 07 05:19:57 2007 +0000
@@ -9,7 +9,7 @@
 module dstress.run.v.volatile_02_C;
 
 template atomicLoad( T ){
-	T atomicLoad( inout T val ){
+	T atomicLoad( ref T val ){
 		volatile{
 			return val;
 		}
--- a/run/v/volatile_02_D.d	Mon May 07 05:19:35 2007 +0000
+++ b/run/v/volatile_02_D.d	Mon May 07 05:19:57 2007 +0000
@@ -9,7 +9,7 @@
 module dstress.run.v.volatile_02_D;
 
 template atomicLoad( T ){
-	T atomicLoad( inout T val ){
+	T atomicLoad( ref T val ){
 		return val;
 	}
 }