root/dmd2036.patch
| Revision 112:3f02152c5e68, 3.2 kB (checked in by Trass3r, 2 years ago) |
|---|
-
a/src/dmd/class.c
old new 61 61 if (id) 62 62 { // Look for special class names 63 63 64 if (id == Id::__sizeof || id == Id:: alignof || id == Id::mangleof)64 if (id == Id::__sizeof || id == Id::_alignof || id == Id::mangleof) 65 65 error("illegal class name"); 66 66 67 67 // BUG: What if this is the wrong TypeInfo, i.e. it is nested? -
a/src/dmd/dsymbol.c
old new 488 488 } 489 489 if (sd->isAggregateDeclaration() || sd->isEnumDeclaration()) 490 490 { 491 if (ident == Id::__sizeof || ident == Id:: alignof || ident == Id::mangleof)491 if (ident == Id::__sizeof || ident == Id::_alignof || ident == Id::mangleof) 492 492 error(".%s property cannot be redefined", ident->toChars()); 493 493 } 494 494 return 1; -
a/src/dmd/expression.c
old new 5747 5747 } 5748 5748 else if (t1b->ty == Tpointer && 5749 5749 ident != Id::init && ident != Id::__sizeof && 5750 ident != Id:: alignof && ident != Id::offsetof &&5750 ident != Id::_alignof && ident != Id::offsetof && 5751 5751 ident != Id::mangleof && ident != Id::stringof) 5752 5752 { /* Rewrite: 5753 5753 * p.ident -
a/src/dmd/idgen.c
old new 45 45 { "init" }, 46 46 { "size" }, 47 47 { "__sizeof", "sizeof" }, 48 { " alignof" },48 { "_alignof", "alignof" }, 49 49 { "mangleof" }, 50 50 { "stringof" }, 51 51 { "tupleof" }, -
a/src/dmd/mtype.c
old new 1266 1266 error(loc, ".size property should be replaced with .sizeof"); 1267 1267 e = new ErrorExp(); 1268 1268 } 1269 else if (ident == Id:: alignof)1269 else if (ident == Id::_alignof) 1270 1270 { 1271 1271 e = new IntegerExp(loc, alignsize(), Type::tsize_t); 1272 1272 } … … 5895 5895 if (!s) 5896 5896 { 5897 5897 if (ident != Id::__sizeof && 5898 ident != Id:: alignof &&5898 ident != Id::_alignof && 5899 5899 ident != Id::init && 5900 5900 ident != Id::mangleof && 5901 5901 ident != Id::stringof && … … 6386 6386 { 6387 6387 6388 6388 if (ident != Id::__sizeof && 6389 ident != Id:: alignof &&6389 ident != Id::_alignof && 6390 6390 ident != Id::init && 6391 6391 ident != Id::mangleof && 6392 6392 ident != Id::stringof && -
a/src/druntime/src/compiler/dmd/win32.mak
old new 163 163 164 164 # Patterns - asm 165 165 166 minit.obj : minit.asm167 $(CC) -c $**166 #minit.obj : minit.asm 167 # $(CC) -c $** 168 168 169 169 # Rulez
Note: See TracBrowser for help on using the browser.
