Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inequable template alias parameters can be mangled identically #18698

Open
dlangBugzillaToGithub opened this issue Oct 15, 2013 · 1 comment
Open

Comments

@dlangBugzillaToGithub
Copy link

Igor Stepanov reported this on 2013-10-15T07:14:03Z

Transferred from https://issues.dlang.org/show_bug.cgi?id=11273

Description

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).

!!!There are attachements in the bugzilla issue that have not been copied over!!!

@dlangBugzillaToGithub
Copy link
Author

wazar.leollone commented on 2013-10-15T07:15:42Z

Created attachment 1265
issue example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant