[Issue 10482] New: Regression (2.063): Compiler allows constant global functions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jun 26 17:42:59 PDT 2013


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

           Summary: Regression (2.063): Compiler allows constant global
                    functions
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: accepts-invalid
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: andrej.mitrovich at gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-06-26 17:42:58 PDT ---
-----
const int * foo();

void main() { }
-----

2.062:
$ dmd test.d
> test.d(3): Error: function test.foo without 'this' cannot be const/immutable

2.063:
$ dmd test.d
> 

I'm not sure how this happened, I remember we had a test-suite covering these.

-- 
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