December 23, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=9199

           Summary: Module level qualified functions should be rejected
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: accepts-invalid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: k.hara.pg@gmail.com


--- Comment #0 from Kenji Hara <k.hara.pg@gmail.com> 2012-12-23 06:39:18 PST ---
Module level functions with qualifiers should report compile error, but doesn't.

void fc() const {}
void fi() immutable {}
void fw() inout {}
void fs() shared {}

In above, fc and fi reports
  Error: function test.foo without 'this' cannot be const/immutable
But fw and fs compiles with no error.

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


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull


--- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2012-12-23 07:53:24 PST ---
https://github.com/D-Programming-Language/dmd/pull/1400

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


bearophile_hugs@eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs@eml.cc


--- Comment #2 from bearophile_hugs@eml.cc 2012-12-23 08:16:21 PST ---
Is this a first step toward fixing Issue 3934 ?

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



--- Comment #3 from Kenji Hara <k.hara.pg@gmail.com> 2012-12-23 08:27:16 PST ---
(In reply to comment #2)
> Is this a first step toward fixing Issue 3934 ?

Mostly unrelated.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 22, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9199



--- Comment #4 from github-bugzilla@puremagic.com 2013-01-21 17:49:31 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/122b3b8e2fae8692c6570f087629854c17120fe7 fix Issue 9199 - Module level qualified functions should be rejected

`inout` had qualified the function itself, rather than its return type.

https://github.com/D-Programming-Language/phobos/commit/27c81c985d80e15757d5ead12537944f40f6da04 Merge pull request #1087 from 9rnsr/fix9199

Supplemental fix for Issue 9199 - Module level qualified functions should be rejected

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 18, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9199



--- Comment #5 from github-bugzilla@puremagic.com 2013-02-17 23:38:40 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/9be3402e51ee4b1384e9d9320f15b1a4d2f25059 fix Issue 9199 - Module level qualified functions should be rejected

https://github.com/D-Programming-Language/dmd/commit/a22a1254ce29272dc223a1566e2e6ad24d65cd1d Merge pull request #1400 from 9rnsr/fix9199

Issue 9199 - Module level qualified functions should be rejected

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 18, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9199


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Top | Discussion index | About this forum | D home