Bug 15069 – [REG2.064] nonsense struct template instantiations still compile

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-09-16T08:37:27Z
Last change time
2020-03-21T03:56:34Z
Keywords
accepts-invalid, pull
Assigned to
No Owner
Creator
John Colvin

Comments

Comment #0 by john.loughran.colvin — 2015-09-16T08:37:27Z
void main() { Stuff!(Thing!float) s; } struct Stuff(T) { T!int var; } struct Thing(T) { T varling; } This compiles and makes no sense.
Comment #1 by dfj1esp02 — 2015-09-16T08:50:39Z
*** Issue 15070 has been marked as a duplicate of this issue. ***
Comment #2 by dlang-bugzilla — 2015-10-15T16:57:27Z
Comment #3 by dlang-bot — 2019-11-24T11:33:37Z
@StianGulpen created dlang/dmd pull request #10613 "fix issue 15069 - nonsense struct template instantiations still compile" fixing this issue: - fix issue 15069 - nonsense struct template instantiations still compile https://github.com/dlang/dmd/pull/10613
Comment #4 by dlang-bot — 2019-11-25T12:43:11Z
dlang/dmd pull request #10613 "fix issue 15069 - nonsense struct template instantiations still compile" was merged into stable: - a7dbe9628a38a0089b71b2ba0daac3157e22daee by Stian Gulpen: fix issue 15069 - nonsense struct template instantiations still compile https://github.com/dlang/dmd/pull/10613