------- 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