D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 15069 - [REG2.064] nonsense struct template instantiations still compile
Summary: [REG2.064] nonsense struct template instantiations still compile
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 regression
Assignee: No Owner
URL:
Keywords: accepts-invalid, pull
: 15070 (view as issue list)
Depends on:
Blocks:
 
Reported: 2015-09-16 08:37 UTC by John Colvin
Modified: 2020-03-21 03:56 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description John Colvin 2015-09-16 08:37:27 UTC
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 anonymous4 2015-09-16 08:50:39 UTC
*** Issue 15070 has been marked as a duplicate of this issue. ***
Comment 2 Vladimir Panteleev 2015-10-15 16:57:27 UTC
This is a regression.

Introduced in https://github.com/D-Programming-Language/dmd/pull/2051
Comment 3 Dlang Bot 2019-11-24 11:33:37 UTC
@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 Dlang Bot 2019-11-25 12:43:11 UTC
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