https://bugzilla.mcs.anl.gov/swift/show_bug.cgi?id=1020 Summary: Conditional array assignment cause undesired warning message Product: Swift Version: 0.94 Platform: PC OS/Version: Mac OS Status: ASSIGNED Severity: normal Priority: P2 Component: Error messages AssignedTo: [email protected] ReportedBy: [email protected] CC: [email protected] This script: int j[]; foreach i in [0:9] { if ( i %% 2 == 0 ) { j[i] = 1; } } Causes this warning, which seems undesirable: Warning: Variable j, defined on line 2, might have multiple conflicting writers Swift 0.94 swift-r6414 (swift modified locally) cog-r3648 RunID: 20130612-1541-xzfmeho0 Progress: time: Wed, 12 Jun 2013 15:41:26 +0000 Final status: Wed, 12 Jun 2013 15:41:26 +0000 I propose that this warning be removed. When would such a warning be desirable? -- Configure bugmail: https://bugzilla.mcs.anl.gov/swift/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.