diff options
author | Jason Merrill <jason@redhat.com> | 2011-07-01 16:24:08 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2011-07-01 16:24:08 -0400 |
commit | a771bf1cf6a6d6f785f5b6f714e9d732ccfcc757 (patch) | |
tree | 935a2f707de091eaf2ce92a9f6731bae86f400f5 /gcc/cp/pt.c | |
parent | 985b34c77a44612cecf8c8a73bfa8224699b9855 (diff) | |
download | gcc-a771bf1cf6a6d6f785f5b6f714e9d732ccfcc757.zip gcc-a771bf1cf6a6d6f785f5b6f714e9d732ccfcc757.tar.gz gcc-a771bf1cf6a6d6f785f5b6f714e9d732ccfcc757.tar.bz2 |
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
Diffstat (limited to 'gcc/cp/pt.c')
-rw-r--r-- | gcc/cp/pt.c | 1 |
1 files changed, 1 insertions, 0 deletions
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), |