This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Missing attachments for bug report c/3707


Reporter's email:
rochg@bakbone.co.uk
CC these people
on PR status email:
chris@bakbone.co.uk


Number:
3707
Category:
c
Synopsis:
Internal error: Segmentation fault when compiling array with pointer to
other array
Confidential:
no
Severity:
serious
Priority:
medium
Responsible:
unassigned
State:
open
Class:
sw-bug
Submitter-Id:
net
Arrival-Date:
Tue Jul 17 03:26:00 PDT 2001
Closed-Date:
Last-Modified:
Originator:
Roch Gadsdon, Bakbone Software
Release:
3.0 Configured with: ./configure  Thread model: single gcc version 3.0
Organization:
Environment:
i686-pc-linux-gnu
Description:
Command line: gcc bug.c
Gives error:
bug.c:20: Internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:
        http://www.gnu.org/software/gcc/bugs.html> for instructions.
File Attachments:
How-To-Repeat:
See description
Fix:
Work around: Make type TestCommandT include a "TestParamT **" rather
than a "TestParamT (*patParams)[]".
Release-Note:
Unformatted:
# 1 "bug.c"
typedef struct
{
  long lType;
}TestParamT;

typedef struct
{
  TestParamT (*patParams)[];
}TestCommandT;



static TestParamT gatArray1[] =
{
  {32}
};

static TestCommandT gatArray2[] =
{
  {&gatArray1}
};

int main(int argc ,char *argv[])
{
        return 0;
}

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]