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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jun 27 10:19:27 PDT 2013


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


Henning Pohl <henning at still-hidden.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |henning at still-hidden.de


--- Comment #1 from Henning Pohl <henning at still-hidden.de> 2013-06-27 10:19:26 PDT ---
This behaviour is wanted, moving const after the function name will produce an
error:

int* foo() const;

----
Error: function main.foo without 'this' cannot be const
----

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

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