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

Cannot overtly call a templated constructor in a non-templated struct #18635

Open
dlangBugzillaToGithub opened this issue Jul 21, 2013 · 0 comments

Comments

@dlangBugzillaToGithub
Copy link

Carl Sturtivant reported this on 2013-07-21T07:40:48Z

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

Description

Created attachment 1237
Small example that illustrates the problem

Consider a constructor call of the form

  A a = A!3(99);

where A is a struct that is not a template but has a constructor that is a
template, such as

  this( int k)(int n) { ... }

Such a constructor call is not recognized as such, instead the compiler
complains that the struct A is not a template.

---confirmed on Windows and Ubuntu amd64.

See

http://forum.dlang.org/thread/aojudrgdecxqxvljaynx@forum.dlang.org#post-adyxvouppnoqktbkgzue:40forum.dlang.org

for discussion thereof.

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

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