digitalmars.D.bugs - [Issue 11395] New: link error (struct+opEquals) on separate compilation
- d-bugmail puremagic.com (51/51) Oct 30 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11395
- d-bugmail puremagic.com (10/10) Oct 30 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11395
- d-bugmail puremagic.com (11/11) Oct 31 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11395
- d-bugmail puremagic.com (9/9) Oct 31 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11395
- d-bugmail puremagic.com (10/10) Oct 31 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11395
http://d.puremagic.com/issues/show_bug.cgi?id=11395 Summary: link error (struct+opEquals) on separate compilation Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: link-failure Severity: regression Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: mk krej.cz ---------------- module stru; struct StruB { bool flag; int[] nums; bool opEquals(bool b) { return flag == b; } } struct StruA { int num; StruB sb; } ---------------- module main; import stru; StruA[] arr; void main() { StruA s; arr ~= s; } ----------------- dmd -c stru.d dmd -c main.d dmd main.o stru.o main.o:(.data._D21TypeInfo_S4stru5StruA6__initZ+0x1c): undefined reference to `_D4stru5StruA11__xopEqualsFKxS4stru5StruAKxS4stru5StruAZb' collect2: ld returned 1 exit status --- errorlevel 1 DMD32 D Compiler v2.064-devel-e5a0c64 Linux This is a regression against earlier 2.064 or 2.063.2 Adding opEquals to StruA or a single command compilation both solves the problem, so feel free to downgrade. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 30 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11395 Kenji Hara <k.hara.pg gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull https://github.com/D-Programming-Language/dmd/pull/2698 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 30 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11395 Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/f70c40dce3928ddd2c2d4fc886f66e0587509487 fix Issue 11395 - link error (struct+opEquals) on separate compilation https://github.com/D-Programming-Language/dmd/commit/9dabf26ab0edf216c994137e09a58db6d509669a [REG2.064a] Issue 11395 - link error (struct+opEquals) on separate compilation -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 31 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11395 Commit pushed to 2.064 at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/b52c07181deed50fdbff5efc019906b3803d924c [REG2.064a] Issue 11395 - link error (struct+opEquals) on separate compilation -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 31 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11395 Walter Bright <bugzilla digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla digitalmars.com Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 31 2013