From a771bf1cf6a6d6f785f5b6f714e9d732ccfcc757 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Fri, 1 Jul 2011 16:24:08 -0400 Subject: re PR c++/48883 (?: ternary operator fails in certain contexts - link error) PR c++/48883 PR c++/49609 * pt.c (resolve_nondeduced_context): Call mark_used. From-SVN: r175764 --- gcc/cp/pt.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/cp/pt.c') diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index 4903044..947e19e 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -14679,6 +14679,7 @@ resolve_nondeduced_context (tree orig_expr) } if (good == 1) { + mark_used (goodfn); expr = goodfn; if (baselink) expr = build_baselink (BASELINK_BINFO (baselink), -- cgit v1.1