www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9679] New: Refused const/immutable assignment in conditional

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

           Summary: Refused const/immutable assignment in conditional
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: bearophile_hugs eml.cc



void main() {
    if (int           x = 1) {} // OK
    if (auto          x = 1) {} // OK
    if (const int     x = 1) {} // OK
    if (immutable int x = 1) {} // OK
    if (const         x = 1) {} // error
    if (immutable     x = 1) {} // error
}


dmd 2.063alpha:

test.d(6): Error: (arguments) expected following const(x)
test.d(7): Error: (arguments) expected following immutable(x)

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


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull
           Platform|x86                         |All
         OS/Version|Windows                     |All



https://github.com/D-Programming-Language/dmd/pull/1937

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




Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/95279de35ac5b4ccf7e801b623cbff18dc4f5315
fix Issue 9679 - Refused const/immutable assignment in conditional

https://github.com/D-Programming-Language/dmd/commit/af10fde19592278f38862323e5caeda6ccfdebb2


Issue 9679 - Refused const/immutable assignment in conditional

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


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: -------
Apr 26 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9679




Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/e00327521af0d48ae052a922737f1664e8dc8488
Additional fix for issue 9679 - see 'redundant storage class'

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




Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/413211e4c22f85cba9703b4d2bad546772ac026b
fix issue 9679 - DMD doesn't parse valid PostfixExpression .
NewExpression syntax.

https://github.com/D-Programming-Language/dmd/commit/3268b854fe0250fd713feb8de40dff5a7bf73c5b


fix issue 9679 - DMD doesn't parse valid PostfixExpression . NewExpression
syntax.

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





 Commits pushed to master at https://github.com/D-Programming-Language/dmd
 
 https://github.com/D-Programming-Language/dmd/commit/413211e4c22f85cba9703b4d2bad546772ac026b
 fix issue 9679 - DMD doesn't parse valid PostfixExpression .
 NewExpression syntax.
 
 https://github.com/D-Programming-Language/dmd/commit/3268b854fe0250fd713feb8de40dff5a7bf73c5b

 
 fix issue 9679 - DMD doesn't parse valid PostfixExpression . NewExpression
 syntax.
This seems for issue 9649? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 26 2013