[Bug c++/79687] [5/6/7 Regression] Wrong code with pointer-to-member
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Feb 23 14:44:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79687
--- Comment #13 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Uh. (sizetype) q is folded to -1 in constant_value_1. DECL_INITIAL of "q" is
-1, that's what build_zero_init_1 did:
177 else if (TYPE_PTR_OR_PTRMEM_P (type))
178 init = fold (convert (type, nullptr_node));
type is offset_type. Why is nullptr_node converted to offset_type -1?!
More information about the Gcc-bugs
mailing list