Bug 246 – class members not initialized

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2006-07-08T21:20:00Z
Last change time
2014-02-15T13:19:58Z
Assigned to
bugzilla
Creator
ashleymedlock

Comments

Comment #0 by ashleymedlock — 2006-07-08T21:20:08Z
Class members are apparently not initialized in DMD 0.162 // code sample import std.stdio; class Foo { float[4] array = 1.0; int count = 10; } void main( char[][] args ) { Foo f = new Foo(); writefln("Foo count = %s", f.count ); } // this prints 0(zero) on my machine
Comment #1 by jpelcis — 2006-07-18T16:40:14Z
Fixed DMD 0.163.