D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 11273 - inequable template alias parameters can be mangled identically
Summary: inequable template alias parameters can be mangled identically
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P3 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-15 07:14 UTC by Igor Stepanov
Modified: 2024-12-13 18:12 UTC (History)
0 users

See Also:


Attachments
issue example (1.08 KB, text/x-dsrc)
2013-10-15 07:15 UTC, Igor Stepanov
Details

Note You need to log in before you can comment on or make changes to this issue.
Description Igor Stepanov 2013-10-15 07:14:03 UTC
For example: 

void test(alias a)()
{
}

void main()
{
   assert(test!(real.infinity).mangleof == test!(real.max).mangleof);
}

This fact means that different symbols (test!(real.infinity) and test!(real.max)) will be written into object file with the same name. It's cause ld warning in linux and VisualStudio linker error (see big example in attachment).
Comment 1 Igor Stepanov 2013-10-15 07:15:42 UTC
Created attachment 1265 [details]
issue example
Comment 2 dlangBugzillaToGithub 2024-12-13 18:12:59 UTC
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/18698

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB