[Issue 9234] New: DMD confuses string template parameter with function

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Dec 28 04:45:30 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=9234

           Summary: DMD confuses string template parameter with function
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: puneet at coverify.org


--- Comment #0 from Puneet Goel <puneet at coverify.org> 2012-12-28 04:45:29 PST ---
Here is a reduced testcase. Compiles with release 2.060 but fails with the
current github snapshot with an error:

test.d(8): Error: need 'this' for bar type void()
test.d(3): Error: Foo!(bar) is used as a type



class Fizz {                      //  1
  void bar() { }                  //  2
  Foo!bar foobar;                 //  3
}                                 //  4
                                  //  5
struct Foo (alias F) { }          //  6
                                  //  7
struct Foo (string THUNK) { }     //  8
                                  //  9
void main() { }                   // 10

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list