--- Comment #6 from Shin Fujishiro <> 2010-05-07 11:30:35 PDT 
Created an attachment (id=624)
Patch for DMD 2.045

The attached patch should fix the problem.

Since DMD 2.028, result variables are marked as const.  The cause of this bug
is that DMD mistakenly tries to const-fold a result variable into its default
initializer.  Unfortunately, it succeeds when return type is a basic value type
(int, bool, etc.).

The attached patch adds a STCresult storage class to declaration.h, and applies
it to the vresult.  The STCresult is similar to the STCparameter; it disables
default-value initialization of result variables.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to