🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #2535

segv in build_array_ref on sun3

#2535
From: Adam de Boor
Date: Thu, 27 Apr 1989 01:11
18 lines
753 bytes
The following code:
extern char paths[3][];

char
main()
{
    return (*paths[0]);
}


generates a segv in version 1.34 of gcc running on a sun3 (no fpu),
SunOS 3.5. Null-pointer deref. The line in my version is 849, c-typeck.c,
the if statement:

    if (TREE_CODE(index) != INTEGER_CST
	TREE_CODE (TYPE_SIZE (TREE_TYPE (TREE_TYPE (array)))) != INTEGER_CST)

a
Technical Details
Message-ID: <8904270111.AA12288@promethium.bsw.com>
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!uunet!tut.cis.ohio-state.edu!UUNET.UU.NET!bsw!adam

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!uunet!tut.cis.ohio-state.edu!UUNET.UU.NET!bsw!adam
From: bsw!adam@UUNET.UU.NET (Adam de Boor)
Newsgroups: gnu.gcc.bug
Subject: segv in build_array_ref on sun3
Message-ID: <8904270111.AA12288@promethium.bsw.com>
Date: 27 Apr 89 01:11:10 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 18