This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/2239: Use of an undeclared variable is handled but causes an Internal compiler error in weird places.
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/2239: Use of an undeclared variable is handled but causes an Internal compiler error in weird places.
- From: mat dot hounsell at excite dot com
- Date: 9 Mar 2001 04:31:26 -0000
- Reply-To: mat dot hounsell at excite dot com
>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: