www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10330] New: Regression (2.063.2): __VERSION__ is set wrong

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10330

           Summary: Regression (2.063.2): __VERSION__ is set wrong
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: andrej.mitrovich gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich gmail.com> 2013-06-11
05:31:44 PDT ---
module test;
void main()
{
    pragma(msg, __VERSION__);
}

2.063:
$ dmd test.d
 2063L
2.063.2: $ dmd test.d
 63002L
-- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 11 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10330



--- Comment #1 from Andrej Mitrovic <andrej.mitrovich gmail.com> 2013-06-11
05:34:46 PDT ---
Copied from NG:

Note that some of us have used __VERSION__ to enable compiler-specific
compilation, e.g.:

static assert(__VERSION__ >= 2.063, "This library can only compile
with D 2.063 or newer");

Or:

static if (__VERSION__ < 2.063) { /* implement some compiler/library
workaround here */ }
else { /* use regular code or regular import here */ }

Unfortunately __VERSION__ was never built to be used with these
".point" releases, so maybe we should simply let __VERSION__ always be
2063 for all 2.063 point releases.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 11 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10330


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla digitalmars.com
            Version|unspecified                 |D1 & D2


--- Comment #2 from Walter Bright <bugzilla digitalmars.com> 2013-06-11
13:42:48 PDT ---
https://github.com/D-Programming-Language/dmd/pull/2162

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 11 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10330



--- Comment #3 from github-bugzilla puremagic.com 2013-06-11 13:46:39 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/01bd0c2e1c9ed05ad754bac0afc05f6a38cdf82c
fix Issue 10330 - Regression (2.063.2): __VERSION__ is set wrong

https://github.com/D-Programming-Language/dmd/commit/19a54f8d3c65eb017aba3c7ef3a15f9629fe0e72
Merge pull request #2162 from WalterBright/fix10330

fix Issue 10330 - Regression (2.063.2): __VERSION__ is set wrong

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 11 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10330


Andrej Mitrovic <andrej.mitrovich 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: -------
Jun 11 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10330



--- Comment #4 from github-bugzilla puremagic.com 2013-06-11 14:06:45 PDT ---
Commit pushed to 2.063 at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/b0240e505ea2be6dbbe20129c234a9302f25cb07
Merge pull request #2162 from WalterBright/fix10330

fix Issue 10330 - Regression (2.063.2): __VERSION__ is set wrong

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 11 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10330



--- Comment #5 from github-bugzilla puremagic.com 2013-06-11 14:08:29 PDT ---
Commit pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/f0efaeafd95e33ee2c5fbfb67a9ae01ab82e436b
Merge pull request #2162 from WalterBright/fix10330

fix Issue 10330 - Regression (2.063.2): __VERSION__ is set wrong

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