[Bug middle-end/20995] [3.4 regression] ICE in const_binop, at fold-const.c:1391
roger at eyesopen dot com
gcc-bugzilla@gcc.gnu.org
Sat Apr 23 16:25:00 GMT 2005
------- Additional Comments From roger at eyesopen dot com 2005-04-23 16:24 -------
This is actually a C++ front-end bug. It looks like on the 3.4 branch
ocp_convert is calling "fold" instead of "fold_if_not_in_template" (which
is what happens on mainline). This call to "fold" triggers a chain reaction
that eventually leads to mismatched types in a COND_EXPR, but not before
over-writing memory first!
I'll try and track down and backport the mainline C++ patch which solves
this issue.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20995
More information about the Gcc-bugs
mailing list