[Issue 8741] wrong code for struct member initialized using struct constructor

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Oct 2 00:04:03 PDT 2012


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


Don <clugdbug at yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
                 CC|                            |clugdbug at yahoo.com.au
            Summary|[CTFE] Incorrect static     |wrong code for struct
                   |array assign results in     |member initialized using
                   |constructor                 |struct constructor


--- Comment #1 from Don <clugdbug at yahoo.com.au> 2012-10-02 00:04:08 PDT ---
Was "CTFE: Incorrect static array assign results in constructor"

This doesn't involve CTFE, it's a semantic error. It is deciding if Vec2(0) is
a struct literal or a constructor, before it has worked out that Vec2 even has
a constructor. So it decides (incorrectly) that it's a struct literal.
It doesn't require static arrays, either. The constructor just doesn't get
called at all.

-- 
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