www.digitalmars.com         C & C++   DMDScript  

D.gnu - [Bug 178] New: cc1d locks up when specifying function instead of

Date: Mon, 6 Apr 2015 14:53:53 +0100
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"

http://bugzilla.gdcproject.org/show_bug.cgi?id=178

            Bug ID: 178
           Summary: cc1d locks up when specifying function instead of
                    function pointer in an array
           Product: GDC
           Version: 4.9.x
          Hardware: PPC
                OS: OSX
            Status: NEW
          Severity: critical
          Priority: Normal
         Component: gdc
          Assignee: ibuclaw gdcproject.org
          Reporter: jens-bugzilla gpio.dk

Created attachment 83
  --> http://bugzilla.gdcproject.org/attachment.cgi?id=83&action=edit
Example file. When compiling this, cc1d locks up.

By accident I forgot to add a '&' in front of Reset_Handler in this array:

Steps to reproduce:
Build the attachd file 'start.d'.

Results: cc1d locks up.

build: f378f9a, branch=gdc-4.9


Code:
VectorFunc [3] g_pfnVectors = [
    &Reset_Handler, /* If removing the '&' here, cc1d locks up. */
    ];

Speculation: This bug might relate to all platforms or perhaps a Big Endian
issue if it's not reproducible on for instance X86.

Note: Unfortunately, the tools that Apple provide for debugging locks up, when
I'm trying to sample the process, in order to find out where it locks up.

-- 
You are receiving this mail because:
You are watching all bug changes.
Apr 06 2015