comparison dmd/declaration.c @ 913:29c0d1194033

Fix #198 and #199 by making CTFE on static struct initializers work. Renamed SymbolDeclaration to StaticStructInitDeclaration to make its usage clearer.
author Christian Kamm <kamm incasoftware de>
date Sun, 01 Feb 2009 20:20:56 +0100
parents 340acf1535d0
children 545f54041d91
comparison
equal deleted inserted replaced
912:16264a3973bf 913:29c0d1194033
1406 { 1406 {
1407 assert(0); // should never be produced by syntax 1407 assert(0); // should never be produced by syntax
1408 return NULL; 1408 return NULL;
1409 } 1409 }
1410 1410
1411 1411 /********************** StaticStructInitDeclaration ***************************/
1412
1413 StaticStructInitDeclaration::StaticStructInitDeclaration(Loc loc, StructDeclaration *dsym)
1414 : Declaration(new Identifier("", TOKidentifier))
1415 {
1416 this->loc = loc;
1417 this->dsym = dsym;
1418 storage_class |= STCconst;
1419 }
1420