This is the mail archive of the insight-prs@sources.redhat.com mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

insight/126: A "static const int" for an array size causes Insight 5.1 to crash.



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]