Bug 15068 – wrong error message on attempting to use type as template
Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-09-16T08:34:39Z
Last change time
2018-06-12T18:58:43Z
Assigned to
No Owner
Creator
John Colvin
Comments
Comment #0 by john.loughran.colvin — 2015-09-16T08:34:39Z
void main()
{
Stuff!int s;
}
struct Stuff(T)
{
T!int var;
}
leads to the error:
test.d(8): Error: template instance T!int T is not a template declaration, it is a alias
T is not an alias, it's a type.
Comment #1 by razvan.nitu1305 — 2018-06-11T13:40:03Z