annotate dmd2035.patch @ 92:0c891ec48515

Fixed another bug related to copy ctor
author korDen
date Mon, 30 Aug 2010 23:43:38 +0400
parents d0f297f8650b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
80
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
1 # HG changeset patch
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
2 # User trass3r
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
3 # Date 1283163123 -7200
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
4 # Node ID 1ca9dcaadc045a9856c1c554fb2f871081df12a0
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
5 # Parent e5248fb387cb8381af2c9ec786bd08a86d90a3a7
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
6 fix
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
7
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
8 diff -r e5248fb387cb -r 1ca9dcaadc04 class.c
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
9 --- a/class.c Sat Aug 28 17:24:54 2010 +0200
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
10 +++ b/class.c Mon Aug 30 12:12:03 2010 +0200
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
11 @@ -61,7 +61,7 @@
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
12 if (id)
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
13 { // Look for special class names
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
14
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
15 - if (id == Id::__sizeof || id == Id::alignof || id == Id::mangleof)
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
16 + if (id == Id::__sizeof || id == Id::__xalignof || id == Id::mangleof)
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
17 error("illegal class name");
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
18
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
19 // BUG: What if this is the wrong TypeInfo, i.e. it is nested?
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
20 diff -r e5248fb387cb -r 1ca9dcaadc04 dsymbol.c
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
21 --- a/dsymbol.c Sat Aug 28 17:24:54 2010 +0200
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
22 +++ b/dsymbol.c Mon Aug 30 12:12:03 2010 +0200
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
23 @@ -488,7 +488,7 @@
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
24 }
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
25 if (sd->isAggregateDeclaration() || sd->isEnumDeclaration())
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
26 {
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
27 - if (ident == Id::__sizeof || ident == Id::alignof || ident == Id::mangleof)
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
28 + if (ident == Id::__sizeof || ident == Id::__xalignof || ident == Id::mangleof)
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
29 error(".%s property cannot be redefined", ident->toChars());
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
30 }
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
31 return 1;
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
32 diff -r e5248fb387cb -r 1ca9dcaadc04 expression.c
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
33 --- a/expression.c Sat Aug 28 17:24:54 2010 +0200
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
34 +++ b/expression.c Mon Aug 30 12:12:03 2010 +0200
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
35 @@ -5714,7 +5714,7 @@
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
36 }
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
37 else if (t1b->ty == Tpointer &&
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
38 ident != Id::init && ident != Id::__sizeof &&
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
39 - ident != Id::alignof && ident != Id::offsetof &&
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
40 + ident != Id::__xalignof && ident != Id::offsetof &&
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
41 ident != Id::mangleof && ident != Id::stringof)
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
42 { /* Rewrite:
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
43 * p.ident
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
44 diff -r e5248fb387cb -r 1ca9dcaadc04 idgen.c
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
45 --- a/idgen.c Sat Aug 28 17:24:54 2010 +0200
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
46 +++ b/idgen.c Mon Aug 30 12:12:03 2010 +0200
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
47 @@ -45,7 +45,7 @@
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
48 { "init" },
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
49 { "size" },
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
50 { "__sizeof", "sizeof" },
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
51 - { "alignof" },
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
52 + { "__xalignof", "alignof" },
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
53 { "mangleof" },
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
54 { "stringof" },
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
55 { "tupleof" },
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
56 diff -r e5248fb387cb -r 1ca9dcaadc04 mtype.c
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
57 --- a/mtype.c Sat Aug 28 17:24:54 2010 +0200
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
58 +++ b/mtype.c Mon Aug 30 12:12:03 2010 +0200
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
59 @@ -1303,7 +1303,7 @@
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
60 error(loc, ".size property should be replaced with .sizeof");
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
61 e = new ErrorExp();
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
62 }
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
63 - else if (ident == Id::alignof)
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
64 + else if (ident == Id::__xalignof)
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
65 {
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
66 e = new IntegerExp(loc, alignsize(), Type::tsize_t);
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
67 }
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
68 @@ -5807,7 +5807,7 @@
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
69 if (!s)
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
70 {
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
71 if (ident != Id::__sizeof &&
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
72 - ident != Id::alignof &&
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
73 + ident != Id::__xalignof &&
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
74 ident != Id::init &&
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
75 ident != Id::mangleof &&
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
76 ident != Id::stringof &&
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
77 @@ -6298,7 +6298,7 @@
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
78 {
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
79
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
80 if (ident != Id::__sizeof &&
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
81 - ident != Id::alignof &&
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
82 + ident != Id::__xalignof &&
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
83 ident != Id::init &&
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
84 ident != Id::mangleof &&
d0f297f8650b added probably needed dmd patch to the 2.035 branch
Trass3r
parents:
diff changeset
85 ident != Id::stringof &&