🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #6390

Syntax error makes gcc 2.7.0 segfault

#6390
From: Christopher Neufeld
Date: Wed, 22 Nov 1995 00:00
26 lines
1072 bytes
   The following short program with a syntax error causes cc1 to
segfault, rather than report the error. This is gcc v2.7.0 running on
Linux v1.3.35 on a Pentium-90 CPU.

=== BEGIN CODE ===

/* Segfault the compiler. */

struct little { int a;
                int b[2]; };

const struct little oopsy = { 0,
                              [ 0 ]; };

int main(void)
{
  return 0;
}

=== END CODE ===


-- 
 Christopher Neufeld....Just a graduate student   neufeld@physics.utoronto.ca
 Home page:  http://caliban.physics.utoronto.ca/neufeld/Intro.html
 "Don't edit reality for the sake of simplicity"
Technical Details
Message-ID: <199511222031.PAA10487@caliban.physics.utoronto.ca>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 113d02,6a4a5424d935bd75,start
X-Google-Attributes: gid113d02,public
From: neufeld@physics.utoronto.ca (Christopher Neufeld)
Subject: Syntax error makes gcc 2.7.0 segfault
Date: 1995/11/22
Message-ID: <199511222031.PAA10487@caliban.physics.utoronto.ca>
X-Deja-AN: 119950304
distribution: gnu
sender: daemon@cis.ohio-state.edu
organization: GNUs Not Usenet
newsgroups: gnu.gcc.bug