Bug 10689 – Cannot overtly call a templated constructor in a non-templated struct

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-07-21T07:40:48Z
Last change time
2024-12-13T18:09:36Z
Assigned to
No Owner
Creator
Carl Sturtivant
Moved to GitHub: dmd#18635 →

Attachments

IDFilenameSummaryContent-TypeSize
1237constr_conflict.dSmall example that illustrates the problemapplication/octet-stream366

Comments

Comment #0 by sturtivant — 2013-07-21T07:40:48Z
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/[email protected]#post-adyxvouppnoqktbkgzue:40forum.dlang.org for discussion thereof.
Comment #1 by robert.schadek — 2024-12-13T18:09:36Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18635 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB