www.digitalmars.com         C & C++   DMDScript  

D.gnu - [Issue 1325] New: Forward declaration crashes gdc on cygwin

reply d-bugmail puremagic.com writes:
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 users.sf.net
        ReportedBy: tortoise_74 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. --
Jul 09 2007
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1325


csantander619 gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         OS/Version|Windows                     |All
            Summary|Forward declaration crashes |Forward declaration crashes
                   |gdc on cygwin               |gdc





Confirmed to happen on Mac too. GDC 0.23 + Gregor's 1.018 patch.
As a side note, you can download more recent binaries from GDC's SourceForge
site.


-- 
Jul 09 2007
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1325






I can confirm this happens with the latest version of gdc as well.

F:\projects\Agenda>gdc --version
gdc (GCC) 3.4.4 (cygming special, gdc 0.23, using dmd 1.007))

I also get:
 cc1d: warning: command line option "-iprefix" is valid for C/C++/ObjC/ObjC++
but
 not for D

Which probably an artifact of how I installed the later version by copying it
into the cygwin directory. If there's a better way it should be documented
somewhere.


-- 
Jul 10 2007
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1325


dvdfrdmn users.sf.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED





fixed in svn r123 / release 0.24


-- 
Jul 13 2007
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1325






Added to DStress as
http://dstress.kuehne.cn/compile/a/abstract_18_A.d
http://dstress.kuehne.cn/compile/a/abstract_18_B.d
http://dstress.kuehne.cn/compile/a/abstract_18_C.d
http://dstress.kuehne.cn/compile/a/abstract_18_D.d


-- 
Feb 25 2008