[Issue 1325] New: Forward declaration crashes gdc on cygwin

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jul 9 14:10:57 PDT 2007


http://d.puremagic.com/issues/show_bug.cgi?id=1325

           Summary: Forward declaration crashes gdc on cygwin
           Product: DGCC aka GDC
           Version: unspecified
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: critical
          Priority: P2
         Component: glue layer
        AssignedTo: dvdfrdmn at users.sf.net
        ReportedBy: tortoise_74 at yahoo.co.uk


Hi,
   Apologies if this is a duplicate. My bugzilla search did not find it.
This is also my first attempt at D programming. An unresolved forward reference
causes a segfault on cygwin. See following code. If the forward reference is
replaced by an empty definition everything is fine.

prompt>gdc --version
gdc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)

As far as I'm aware this is the latest version of gdc available for cygwin.
This is probably the route of the problem.

<code file="foo.d">
class forwardRef;

interface foo {
public:
   abstract void bar(in forwardRef task);

};
</code>

>gdc -c foo.d -o foo.o
foo.d:0: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.

Note: the same problem occurs if -mno-cygwin is used.

Regards,
       Bruce.


-- 



More information about the D.gnu mailing list