[Bug c++/26740] [4.2 regression] ICE taking the address of a bound member function
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Apr 24 01:51:00 GMT 2006
------- Comment #4 from pinskia at gcc dot gnu dot org 2006-04-24 01:51 -------
This patch fixes the ICE for me but I don't know if it is the correct one:
Index: cp/typeck.c
===================================================================
--- cp/typeck.c (revision 113199)
+++ cp/typeck.c (working copy)
@@ -4208,6 +4208,7 @@ build_unary_op (enum tree_code code, tre
and the created OFFSET_REF. */
tree base = TYPE_MAIN_VARIANT (TREE_TYPE (TREE_OPERAND (arg, 0)));
tree fn = get_first_fn (TREE_OPERAND (arg, 1));
+ mark_used (fn);
if (! flag_ms_extensions)
{
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26740
More information about the Gcc-bugs
mailing list