www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15069] New: nonsense struct template instantiations still

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 puremagic.com
          Reporter: john.loughran.colvin 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.

--
Sep 16 2015