June 25, 2012 [Issue 8296] New: @disable this propagates through reference | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=8296 Summary: @disable this propagates through reference Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: code@benjamin-thaut.de --- Comment #0 from Benjamin Thaut <code@benjamin-thaut.de> 2012-06-25 07:17:05 PDT --- Created an attachment (id=1120) repro case In the attached repro case the @disable this() in bar2 prevents bar1 from being initialized even though bar1 is not using bar2 directly. bar1 is only holding a reference to a class which uses bar2. Also the error message is really strange as it points to a line in the sourcecode where there should not be any initialization as the struct is return via reference. Tested with dmd 2.058 & 2.059 on windows -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
October 13, 2013 [Issue 8296] @disable this propagates through reference | ||||
---|---|---|---|---|
| ||||
Posted in reply to Benjamin Thaut | http://d.puremagic.com/issues/show_bug.cgi?id=8296 Benjamin Thaut <code@benjamin-thaut.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |rejects-valid --- Comment #1 from Benjamin Thaut <code@benjamin-thaut.de> 2013-10-13 02:12:03 PDT --- Still an issue in 2.064 beta 1 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation