www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.ide
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript
electronics




D.gnu - [Issue 1921] New: struct literal segfaults for structs with nested union/struct

↑ ↓ ← d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1921

           Summary: struct literal segfaults for structs with nested
                    union/struct
           Product: DGCC aka GDC
           Version: 0.24
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: glue layer
        AssignedTo: dvdfrdmn users.sf.net
        ReportedBy: baryluk mpi.int.pl


module vec1;

struct vec1 {
        union {
                struct {
                        float x;
                }
                float cell;
        }

        vec1 opMul(float c) {
                return vec1(c*x); // line 12
        }
}

$ gdc -c vec1.d
vec1.d: In member function ‘opMul’:
vec1.d:12: internal compiler error: Naruszenie ochrony pamięci (Segmentation
fault)
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


-- 
Mar 13 2008
↑ ↓ → d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1921





------- Comment #1 from baryluk mpi.int.pl  2008-03-13 13:14 -------
*** Bug 1922 has been marked as a duplicate of this bug. ***


-- 
Mar 13 2008