digitalmars.D - Const compile error for DMD 2.061 vs 2.060
- Jonathan Crapuchettes (15/15) Jan 03 2013 I have some code in a library ...
I have some code in a library that currently compiles with DMD 2.060, but as soon as I switched to 2.061 I start getting errors. Is there a visible error in my code? http://dpaste.dzfl.pl/614558a4 (Warning: DustMite minimized) The code should not fully compile, since it has been minimized, but with DMD 2.061 I get the following errors: --- Error: can only initialize const member _dimStrides_field_0 inside constructor Error: can only initialize const member _dimStrides_field_1 inside constructor Error: can only initialize const member _dimStrides_field_2 inside constructor --- Again, DMD 2.060 doesn't throw those errors. Thanks, Jonathan
Jan 03 2013