https://issues.dlang.org/show_bug.cgi?id=15069
Issue ID: 15069
Summary: nonsense struct template instantiations still compile
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
void main()
{
Stuff!(Thing!float) s;
}
struct Stuff(T)
{
T!int var;
}
struct Thing(T)
{
T varling;
}
This compiles and makes no sense.
--
