[Bug c++/99062] [10/11 Regression] ICE in tree_to_uhwi, at tree.h:4579
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Feb 10 18:45:03 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99062
--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Must be this part:
@@ -2935,8 +2936,8 @@ handle_assume_aligned_attribute (tree *node, tree name,
tree args, int,
/* The misalignment specified by the second argument
must be non-negative and less than the alignment. */
warning (OPT_Wattributes,
- "%qE attribute argument %E is not in the range [0, %E)",
- name, val, align);
+ "%qE attribute argument %E is not in the range [0, %wu]",
+ name, val, tree_to_uhwi (align) - 1);
*no_add_attrs = true;
return NULL_TREE;
}
More information about the Gcc-bugs
mailing list