www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 3865] New: ICE(cgcs.c): Assigning to struct literal member

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

           Summary: ICE(cgcs.c): Assigning to struct literal member
           Product: D
           Version: 1.020
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: clugdbug yahoo.com.au



Applies to both D1 and D2. Not a regression.
---
struct ICE3865{
   int x;
}

void ice3865() {
    ICE3865(0).x =3;
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 28 2010
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3865


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|ICE(cgcs.c): Assigning to   |ICE(cgcs.c, D1 only):
                   |struct literal member       |Assigning to struct literal
                   |                            |member



Strange, I can't reproduce this on D2. I must have been mistaken -- this seems
to be a D1-only bug.

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


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|D1                          |D1 & D2
            Summary|ICE(cgcs.c, D1 only):       |ICE(cgcs.c): Assigning to
                   |Assigning to struct literal |struct literal member
                   |member                      |



Test case which also applies to D2:

struct ICE3865{
   int x;
}

void ice3865() {
   ICE3865(7).x += 1;
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 19 2011
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3865


Andrej Mitrovic <andrej.mitrovich gmail.com> changed:

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



05:57:00 PST ---
*** Issue 7842 has been marked as a duplicate of this issue. ***

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


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla digitalmars.com
           Platform|Other                       |All
            Version|D1 & D2                     |D1
         OS/Version|Windows                     |All



18:16:08 PDT ---
D2 2.064 produces:

test.d(6): Error: constant 7 is not an lvalue

Reclassified as D1 only bug.

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