[Issue 9486] New: Alias parameter breaks between modules for AA on x64
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Feb 8 10:28:04 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9486
Summary: Alias parameter breaks between modules for AA on x64
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: m.strashun at gmail.com
--- Comment #0 from Dicebot <m.strashun at gmail.com> 2013-02-08 10:28:02 PST ---
I am not sure what is exactly to blame and this could not find if there exists
issue on topic. Simple reproducible test case:
== mod.d ==
void func(alias arr)()
{
arr["key"] = 43;
}
== test.d ==
import mod;
void main()
{
auto arr = [ "key" : 42 ];
func!(arr)();
}
== shell ==
$ rdmd test.d
.../test.o: In function
`_D4test4mainFZv36__T4funcS24_D4test4mainFZv3arrHAyaiZ4funcMFZv':
test.d:(.text._D4test4mainFZv36__T4funcS24_D4test4mainFZv3arrHAyaiZ4funcMFZv+0x3e):
undefined reference to `_D3mod7__arrayZ'
collect2: ld returned 1 exit status
--- errorlevel 1
It will work if I do _any one_ following:
* Move func to test.d
* Alias integer variable
* Compile for x32 Linux
But on x64 this exact code results in provided error message upon linking.
--
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