of const struct should be treated as if const themselves)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2897
4a8a32a2-be11-0410-ad9d-
d568d2c75423
+2003-09-18 Erik Petrich <epetrich@ivorytower.norman.ok.us>
+
+ * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
+ of const struct should be treated as if const themselves)
+
2003-09-18 Bernhard Held <bernhard@bernhardheld.de>
* src/SDCCval.c (valPlus, valMinus): fixed bug #808337
etype = getSpec (type);
SPEC_SCLS (etype) = (SPEC_SCLS (petype) == S_REGISTER ?
SPEC_SCLS (etype) : SPEC_SCLS (petype));
+ if (IS_SPEC (type))
+ SPEC_CONST (type) |= SPEC_CONST (stype);
+ else
+ DCL_PTR_CONST (type) |= SPEC_CONST (stype);
return type;
}
fields = fields->next;