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


--- Comment #0 from Don <clugdbug yahoo.com.au> 2010-02-28 16:25:39 PST ---
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


--- Comment #1 from Don <clugdbug yahoo.com.au> 2010-04-21 13:00:19 PDT ---
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                      |


--- Comment #2 from Don <clugdbug yahoo.com.au> 2011-12-19 04:36:21 PST ---
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


--- Comment #3 from Andrej Mitrovic <andrej.mitrovich gmail.com> 2013-01-10
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


--- Comment #4 from Walter Bright <bugzilla digitalmars.com> 2013-10-03
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