http://d.puremagic.com/issues/show_bug.cgi?id=8741
Don <clugd...@yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |wrong-code CC| |clugd...@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 <clugd...@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: -------