This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


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

c++/2239: Use of an undeclared variable is handled but causes an Internal compiler error in weird places.



>Number:         2239
>Category:       c++
>Synopsis:       Use of an undeclared variable is handled but causes an Internal compiler error in weird places.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 08 20:36:02 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Mathew Hounsell
>Release:        gcc version 2.95.2 19991024 (release)
>Organization:
>Environment:
SunOS 5.5.1 Generic_103640-34 sun4u sparc sun4u
>Description:
Doesn't handled undeclared identifiers properly.
>How-To-Repeat:
#include <cstring>

const int arr[256];

void f( void ) {
	memset( arr, 0, 256 * sizeof( int ) );
}
>Fix:
Stop with error report on use.
>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]