"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/dmd/dsymbolsem.d" between
dmd-2.093.0.tar.gz and dmd-2.093.1.tar.gz

About: DMD (Digital Mars D) is the D reference compiler. D is an object-oriented, imperative, multi-paradigm system programming language.

dsymbolsem.d  (dmd-2.093.0):dsymbolsem.d  (dmd-2.093.1)
skipping to change at line 2497 skipping to change at line 2497
// https://issues.dlang.org/show_bug.cgi?id=9701 // https://issues.dlang.org/show_bug.cgi?id=9701
if (em.ed.isAnonymous()) if (em.ed.isAnonymous())
{ {
if (em.userAttribDecl) if (em.userAttribDecl)
em.userAttribDecl.userAttribDecl = em.ed.userAttribDecl; em.userAttribDecl.userAttribDecl = em.ed.userAttribDecl;
else else
em.userAttribDecl = em.ed.userAttribDecl; em.userAttribDecl = em.ed.userAttribDecl;
} }
// Eval UDA in this same scope. Issues 19344, 20835, 21122
if (em.userAttribDecl)
em.userAttribDecl.setScope(sc);
// The first enum member is special // The first enum member is special
bool first = (em == (*em.ed.members)[0]); bool first = (em == (*em.ed.members)[0]);
if (em.origType) if (em.origType)
{ {
em.origType = em.origType.typeSemantic(em.loc, sc); em.origType = em.origType.typeSemantic(em.loc, sc);
em.type = em.origType; em.type = em.origType;
assert(em.value); // "type id;" is not a valid enum member declarati on assert(em.value); // "type id;" is not a valid enum member declarati on
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)