🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #2299

Array assignment,

#2299
From: Anton Rang
Date: Wed, 15 Feb 1989 17:33
28 lines
1466 bytes
The following program causes GCC 1.33 (Sun-3/280, SunOS 3.4) to abort
with fatal error 11.  Not using the '&' operator clears up the
problem, and so does assigning the value into a simple variable
instead of an array.

int get_string()
{
  char x;
  char tmp[2];

  inkey(&x);
  tmp[0] = x;
}

--------------------

cpsin3% gcc -v -O t.c
gcc version 1.33
 /usr/local/lib/gcc-cpp -v -undef -D__GNUC__ -Dmc68000 -Dsun -Dunix -D__mc68000__ -D__sun__ -D__unix__ -D__OPTIMIZE__ -D__HAVE_68881__ -Dmc68020 t.c /tmp/cca04638.cpp
GNU CPP version 1.33
 /usr/local/lib/gcc-cc1 /tmp/cca04638.cpp -quiet -dumpbase t.c -O -version -o /tmp/cca04638.s
GNU C version 1.33 (68k, MIT syntax) compiled by GNU C version 1.33.
gcc: Program cc1 got fatal signal 11.

+---------------------------+------------------------+----------------------+
| Anton Rang (grad student) | Things could be worse. | "Do worry...be SAD!" |
| Michigan State University | rang@cpswh.cps.msu.edu |                      |
+---------------------------+------------------------+----------------------+
Technical Details
Message-ID: <1849@cps3xx.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!eecae!cps3xx!rang

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!eecae!cps3xx!rang
From: rang@cpsin3.cps.msu.edu (Anton Rang)
Newsgroups: gnu.gcc.bug
Subject: Array assignment,
Message-ID: <1849@cps3xx.UUCP>
Date: 15 Feb 89 17:33:28 GMT
Sender: usenet@cps3xx.UUCP
Reply-To: rang@cpswh.cps.msu.edu (Anton Rang)
Organization: Michigan State University, Computer Science Dept.
Lines: 28