July 07, 2011 [Issue 6262] New: Templates which exist only inside is(typeof()) shouldn't be instantiated | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=6262 Summary: Templates which exist only inside is(typeof()) shouldn't be instantiated Product: D Version: D1 & D2 Platform: Other OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: clugdbug@yahoo.com.au --- Comment #0 from Don <clugdbug@yahoo.com.au> 2011-07-07 00:06:03 PDT --- The code below should compile with no errors. This is related to the other gagging bugs (bug 4269, bug 5932, bug 4197, bug 5996). I think that every template needs to record whether it is an investigative template or not. If it is, it shouldn't be considered to be instantiated. ----- template Compileable(int z) { bool OK;} static assert(!is(typeof( Compileable!(Bug6262!(int).bar()) ))); struct Bug6262(T) { int bar() { T.codswallop(); return 3; } } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
March 21, 2012 [Issue 6262] Templates which exist only inside is(typeof()) shouldn't be instantiated | ||||
---|---|---|---|---|
| ||||
Posted in reply to Don | http://d.puremagic.com/issues/show_bug.cgi?id=6262 Don <clugdbug@yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #1 from Don <clugdbug@yahoo.com.au> 2012-03-21 12:51:44 PDT --- I reported this one twice! Fixed in 2.056. *** This issue has been marked as a duplicate of issue 6661 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation