[Issue 10689] New: Cannot overtly call a templated constructor in a non-templated struct
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jul 21 07:40:49 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10689
Summary: Cannot overtly call a templated constructor in a
non-templated struct
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: sturtivant at gmail.com
--- Comment #0 from Carl Sturtivant <sturtivant at gmail.com> 2013-07-21 07:40:48 PDT ---
Created an attachment (id=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.
--
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