[Issue 8414] New: with statement causes linker error
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jul 22 15:02:15 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8414
Summary: with statement causes linker error
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: andrej.mitrovich at gmail.com
--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2012-07-22 15:02:15 PDT ---
bool matchAny(T...)(T args) { return true; }
enum Enum { en1, en2 }
void main()
{
Enum en;
with (Enum)
if (matchAny(en, en1, en2)) { }
}
C:\DOCUME~1\Andrej\LOCALS~1\Temp\.rdmd\rdmd-with_link_error.d-8483A5FE39E150DD5EE322E7B346449F\with_link_error-d-8483A5FE39E150DD5EE322E7B346449F.obj(with_link_error-d-8483A5FE39E150DD5EE322E7B346449F)
Error 42: Symbol Undefined
_D4test49__T8matchAnyTE4test4EnumTE4test4EnumTE4test4EnumZ8matchAnyFE4test4EnumE4test4EnumE4test4EnumZb
--- errorlevel 1
It probably has something to do with name-mangling.
--
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