[Issue 15069] New: nonsense struct template instantiations still compile
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Sep 16 01:37:27 PDT 2015
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: nobody at puremagic.com
Reporter: john.loughran.colvin at gmail.com
void main()
{
Stuff!(Thing!float) s;
}
struct Stuff(T)
{
T!int var;
}
struct Thing(T)
{
T varling;
}
This compiles and makes no sense.
--
More information about the Digitalmars-d-bugs
mailing list