This is the mail archive of the
insight-prs@sources.redhat.com
mailing list for the Insight project.
insight/126: A "static const int" for an array size causes Insight 5.1 to crash.
- From: Douglas dot Swanson at compaq dot com
- To: insight-gnats at sources dot redhat dot com
- Date: 13 Feb 2002 18:26:57 -0000
- Subject: insight/126: A "static const int" for an array size causes Insight 5.1 to crash.
- Reply-to: Douglas dot Swanson at compaq dot com
>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: