https://d.puremagic.com/issues/show_bug.cgi?id=11720
Kenji Hara <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|tupleof inconsistency |Function-local static | |variables should cause | |"already defined in another | |scope" error --- Comment #1 from Kenji Hara <[email protected]> 2013-12-10 18:19:25 PST --- This is unrelated bug to tupleof property. compile-time iterated foerach loop is unrolled to multiple scope statements. foreach (T; TypeTuple!(int, double)) { static temp = T.stringof; } // is equivalent to: { static temp = int.stringof; } { static temp = double.stringof; } Then, two static temp variables have exactly same mangled name, so they conflicts and should cause linker error at least. However, all of instantiated code will be placed in COMDAT section, so they incorrectly share the storage. Changed the summary. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
