[Issue 5110] Excess attribute propagation of structs and classes

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Oct 24 02:19:54 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=5110



--- Comment #3 from Shin Fujishiro <rsinfu at gmail.com> 2010-10-24 02:18:33 PDT ---
Created an attachment (id=793)
Patch against dmd r727, passed dmd/druntime/phobos tests

The proposed patch implements the said rule.

The patch limits STC propagation via Scope's storage class (sc->stc) only to
@safe/@trusted/@system.  Other STCs such as const and synchronized are 'pulled'
by need of each member out of parent AggregateDeclaration.

This patch also fixes bug 3598 and bug 4211.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list