public inbox for insight-prs@sourceware.org
help / color / mirror / Atom feed
From: Douglas.Swanson@compaq.com
To: insight-gnats@sources.redhat.com
Subject: insight/126: A "static const int" for an array size causes Insight 5.1 to crash.
Date: Wed, 13 Feb 2002 10:33:00 -0000	[thread overview]
Message-ID: <20020213182657.27575.qmail@sources.redhat.com> (raw)


>Number:         126
>Category:       insight
>Synopsis:       A "static const int" for an array size causes Insight 5.1 to crash.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 13 10:33:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Douglas.Swanson@compaq.com
>Release:        Insight 5.1
>Organization:
>Environment:
Win2K / Cygwin
>Description:
Attempting to expand "this" / "private" in the local variables window for a member function whose class definition includes an array whose size is defined by "static const int" causes Insight 5.1 to abnormally terminate.

For example the following class definition provokes
the problem.

#ifndef LIFE_H
#define LIFE_H

class Life {
public:
    void    initialize();
    void    print();
    void    update();
    void    instructions();
private:
    static const int maxrow=20, maxcol=60;
    int grid[maxrow + 2][maxcol + 2];
    int neighbor_count(int row, int col);
};

#endif
>How-To-Repeat:

>Fix:

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


                 reply	other threads:[~2002-02-13 18:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020213182657.27575.qmail@sources.redhat.com \
    --to=douglas.swanson@compaq.com \
    --cc=insight-gnats@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).