[Issue 3730] Struct's explicit constructor can't initialize global variables

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jan 21 10:56:04 PST 2010


http://d.puremagic.com/issues/show_bug.cgi?id=3730



--- Comment #2 from Tomasz Sowiński <tomeksowi at gmail.com> 2010-01-21 10:56:04 PST ---
(In reply to comment #1)
> This works for me in DMD2.039 Windows svn 342. (Are you sure you're not using
> 2.038?)

Yes, I even compiled from command line to make sure.

C:\Projekty\Witajki\Witaj Phobosie>dmd
Digital Mars D Compiler v2.039
Copyright (c) 1999-2009 by Digital Mars written by Walter Bright
Documentation: http://www.digitalmars.com/d/2.0/index.html
[snip]

C:\Projekty\Witajki\Witaj Phobosie>dmd test.d
test.d(8): Error: cannot evaluate ((S __ctmp1;
) , __ctmp1).this(3) at compile time
test.d(8): Error: cannot evaluate ((S __ctmp1;
) , __ctmp1).this(3) at compile time

There's more output after newline which CodeBlocks didn't pick up.

I don't know the SVN rev. of my DMD, though. Maybe sb fixed that after the
release?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list