digitalmars.D.bugs - [Issue 6304] New: DMD does not recognize size_t parameter type while type matching
- d-bugmail puremagic.com (37/37) Jul 12 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6304
- d-bugmail puremagic.com (12/12) Jul 12 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6304
http://d.puremagic.com/issues/show_bug.cgi?id=6304 Summary: DMD does not recognize size_t parameter type while type matching Product: D Version: D2 Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: puneet coverify.org --- Comment #0 from Puneet Goel <puneet coverify.org> 2011-07-12 18:21:28 PDT --- Here is a small test case. I get this error on dmd 2.054/053/052/051. Error vanishes if I replace size_t with ulong on line 6 (inside the is expression). $ dmd struct.d Error: undefined identifier size_t struct.d(11): Error: template instance struct.printFoo!(Foo!(Bar,1)) error instantiating // struct.d import std.stdio; struct Foo(IF, size_t N) {} interface Bar {} void printFoo(T)(T foo) { static if(is(T L: Foo!(IF, N), IF, size_t N)) { writeln("Type: ", T.stringof); } } void main() { Foo!(Bar, 1) foo; printFoo(foo); } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jul 12 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6304 yebblies <yebblies gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |yebblies gmail.com Resolution| |DUPLICATE --- Comment #1 from yebblies <yebblies gmail.com> 2011-07-13 11:25:35 EST --- *** This issue has been marked as a duplicate of issue 2355 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jul 12 2011