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
Comment #2 by github-bugzilla — 2018-06-12T18:58:42Z
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/8fe101636f9aeeb896bbcd6bcc8b4005df915e33 Fix Issue 15068 - wrong error message on attempting to use type as template https://github.com/dlang/dmd/commit/153db26c226d84a27a926810025b91eb6583849c Merge pull request #8351 from RazvanN7/Issue_15068 Fix Issue 15068 - wrong error message on attempting to use type as template