public inbox for insight-prs@sourceware.org
help / color / mirror / Atom feed
* insight/126: A "static const int" for an array size causes Insight 5.1 to crash.
@ 2002-02-13 10:33 Douglas.Swanson
  0 siblings, 0 replies; only message in thread
From: Douglas.Swanson @ 2002-02-13 10:33 UTC (permalink / raw)
  To: insight-gnats


>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:


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

only message in thread, other threads:[~2002-02-13 18:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-13 10:33 insight/126: A "static const int" for an array size causes Insight 5.1 to crash Douglas.Swanson

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).