[Bug c++/11228] [3.3/3.4 regression] ICE on new-expression using array operator new and default-initialization
austern at apple dot com
gcc-bugzilla@gcc.gnu.org
Wed Jun 18 00:07:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11228
------- Additional Comments From austern@apple.com 2003-06-18 00:07 -------
The infinite loop, by the way, is in build_zero_init:
for (index = size_zero_node;
!tree_int_cst_lt (max_index, index);
index = size_binop (PLUS_EXPR, index, size_one_node))
inits = tree_cons (index,
build_zero_init (TREE_TYPE (type),
/*nelts=*/NULL_TREE,
static_storage_p),
inits);
Obviously this won't work if max_index is anything other than an integer constant.
More information about the Gcc-bugs
mailing list