Bug 12144 – [REG DMD2.064] Unresolved xopEquals when referenced by dynamic array constructor

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-02-12T12:22:00Z
Last change time
2014-02-15T22:03:43Z
Keywords
link-failure, pull
Assigned to
nobody
Creator
sludwig

Comments

Comment #0 by sludwig — 2014-02-12T12:22:01Z
The following fails starting from DMD 2.064 (2.063 works, 2.065-beta3 still fails) a.d --- import b; void main() { fun(); } --- b.d --- struct S { bool opEquals(T : S)(T) { return false; } } S[] fun()() { return new S[1]; } --- dmd -lib b.d dmd a.d b.lib results in: OPTLINK (R) for Win32 Release 8.00.15 Copyright (C) Digital Mars 1989-2013 All rights reserved. http://www.digitalmars.com/ctg/optlink.html a.obj(a) Error 42: Symbol Undefined _D1b1S11__xopEqualsFKxS1b1SKxS1b1SZb --- errorlevel 1
Comment #1 by dlang-bugzilla — 2014-02-12T13:07:08Z
Comment #2 by code — 2014-02-12T17:52:31Z
*** Issue 12146 has been marked as a duplicate of this issue. ***
Comment #3 by code — 2014-02-13T16:42:28Z
Comment #4 by github-bugzilla — 2014-02-15T20:47:27Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/0cf5608cd9a0041e3c47290dd52f737b40fceabd fix Issue 12144 - Unresolved xopEquals when referenced by dynamic array constructor https://github.com/D-Programming-Language/dmd/commit/4f8919f100db6e40c30b6d3047e06486d0dd007d Merge pull request #3256 from 9rnsr/fix12144 [REG2.064] Issue 12144 - Unresolved xopEquals when referenced by dynamic array constructor
Comment #5 by k.hara.pg — 2014-02-15T21:29:10Z
Comment #6 by github-bugzilla — 2014-02-15T22:03:43Z
Commits pushed to 2.065 at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/ef0b1445ccb8492ec64d78da5583e0cbb380e15b Merge pull request #3256 from 9rnsr/fix12144 [REG2.064] Issue 12144 - Unresolved xopEquals when referenced by dynamic array constructor Conflicts: src/cast.c src/typinf.c Additional fix: src/expression.h https://github.com/D-Programming-Language/dmd/commit/2c3555e01458b2c15ab164f1dbc261002c9ec547 Fix up issue 12144 test case