Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
October 31, 2013 [Issue 11395] New: link error (struct+opEquals) on separate compilation | ||||
---|---|---|---|---|
| ||||
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 --- Comment #0 from Martin Krejcirik <mk@krej.cz> 2013-10-31 03:32:22 CET --- ---------------- 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: ------- |
October 31, 2013 [Issue 11395] link error (struct+opEquals) on separate compilation | ||||
---|---|---|---|---|
| ||||
Posted in reply to Martin Krejcirik | http://d.puremagic.com/issues/show_bug.cgi?id=11395 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull --- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2013-10-30 21:21:20 PDT --- 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: ------- |
October 31, 2013 [Issue 11395] link error (struct+opEquals) on separate compilation | ||||
---|---|---|---|---|
| ||||
Posted in reply to Martin Krejcirik | http://d.puremagic.com/issues/show_bug.cgi?id=11395 --- Comment #2 from github-bugzilla@puremagic.com 2013-10-31 01:44:00 PDT --- 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 Merge pull request #2698 from 9rnsr/fix11395 [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: ------- |
October 31, 2013 [Issue 11395] link error (struct+opEquals) on separate compilation | ||||
---|---|---|---|---|
| ||||
Posted in reply to Martin Krejcirik | http://d.puremagic.com/issues/show_bug.cgi?id=11395 --- Comment #3 from github-bugzilla@puremagic.com 2013-10-31 01:44:40 PDT --- Commit pushed to 2.064 at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/b52c07181deed50fdbff5efc019906b3803d924c Merge pull request #2698 from 9rnsr/fix11395 [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: ------- |
October 31, 2013 [Issue 11395] link error (struct+opEquals) on separate compilation | ||||
---|---|---|---|---|
| ||||
Posted in reply to Martin Krejcirik | 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: ------- |
Copyright © 1999-2021 by the D Language Foundation