Thread overview
[Issue 9234] New: DMD confuses string template parameter with function
Dec 28, 2012
Puneet Goel
Dec 28, 2012
Kenji Hara
Dec 28, 2012
Kenji Hara
Dec 28, 2012
Walter Bright
December 28, 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@puremagic.com
        ReportedBy: puneet@coverify.org


--- Comment #0 from Puneet Goel <puneet@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: -------
December 28, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=9234



--- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2012-12-28 05:29:55 PST ---
This regression is caused by fixing bug 8251.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 28, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=9234


Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull, rejects-valid


--- Comment #2 from Kenji Hara <k.hara.pg@gmail.com> 2012-12-28 05:34:39 PST ---
https://github.com/D-Programming-Language/dmd/pull/1420

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 28, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=9234



--- Comment #3 from github-bugzilla@puremagic.com 2012-12-28 11:10:00 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/ad5f125f9074e9b6bd8b362d12556bbbf03042e9 fix Issue 9234 - DMD confuses string template parameter with function

https://github.com/D-Programming-Language/dmd/commit/e32197e6150c02671b609c881b602f20dea9d4c6 Merge pull request #1420 from 9rnsr/fix9234

Issue 9234 - DMD confuses string template parameter with function

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 28, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=9234



--- Comment #4 from github-bugzilla@puremagic.com 2012-12-28 11:11:04 PST ---
Commit pushed to staging at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/dff92ecbadea3c959aeb5f99d42f08324b981aae Merge pull request #1420 from 9rnsr/fix9234

Issue 9234 - DMD confuses string template parameter with function

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 28, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=9234


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla@digitalmars.com
         Resolution|                            |FIXED


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