public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c/9749: internal error and segmentation fault of gcc 3.2
@ 2003-02-18 21:56 liberti
  0 siblings, 0 replies; only message in thread
From: liberti @ 2003-02-18 21:56 UTC (permalink / raw)
  To: gcc-gnats


>Number:         9749
>Category:       c
>Synopsis:       internal error and segmentation fault of gcc 3.2
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 18 21:56:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Leo Liberti
>Release:        3.2
>Organization:
>Environment:
GNU/Linux 2.4.18 on a RedHat 8.0 distribution
>Description:
/* the following code causes gcc and g++ 3.2 to crash 
with an internal error. The code shouldn't compile
anyway, but neither should the compiler crash.
gcc 2.95.2 correctly reports the mistakes in the 
snippet */

int main(int argc, char** argv) {
        int nx = 2;
        void theerror(double a[][nx+1]);
        double** a = new double * [1];
        a[0] = new double [3];
        a[0][0] = 0;
        theerror(a);
        return 0;
}

void theerror(double a[][nx+1]) {
        a[0][0] = 1;
}
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-02-18 21:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-18 21:56 c/9749: internal error and segmentation fault of gcc 3.2 liberti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).