Menu

#934 array subscript out of range

open
nobody
build (67)
5
2005-07-24
2005-07-24
No

Originally posted to https://bugzilla.redhat.com/149781 :

----

The compiler said

semantic.h(634): warning #175: subscript out of range

The source code is

DefiniteExpr[Ast::TYPE] =
&Semantic::DefiniteDefaultExpression;

Suggest avoid indexing one beyond the end of the array.
DefiniteExpr has _num_expression_kinds elements, but Ast::TYPE
has
a value far in excess of this value.

I'm not sure what the fix is for this.

Discussion


Log in to post a comment.