Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
5b0c5896
Commit
5b0c5896
authored
Nov 26, 2001
by
Jason Merrill
Committed by
Jason Merrill
Nov 26, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* call.c (joust): Remove COND_EXPR hack.
From-SVN: r47346
parent
5bc72aeb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
21 deletions
+5
-21
gcc/cp/ChangeLog
+4
-0
gcc/cp/call.c
+1
-21
No files found.
gcc/cp/ChangeLog
View file @
5b0c5896
2001-11-26 Jason Merrill <jason@redhat.com>
* call.c (joust): Remove COND_EXPR hack.
2001-11-25 Aldy Hernandez <aldyh@redhat.com>
* cp/search.c (lookup_base_r): Declare bk in variable declaration
...
...
gcc/cp/call.c
View file @
5b0c5896
...
...
@@ -1933,7 +1933,7 @@ add_builtin_candidate (candidates, code, code2, fnname, type1, type2,
break
;
case
COND_EXPR
:
/* [over.built
in
]
/* [over.built]
For every pair of promoted arithmetic types L and R, there
exist candidate operator functions of the form
...
...
@@ -5413,26 +5413,6 @@ joust (cand1, cand2, warn)
/* cand2 is built-in; prefer cand1. */
return
1
;
}
/* Kludge around broken overloading rules whereby
Integer a, b; test ? a : b; is ambiguous, since there's a builtin
that takes references and another that takes values. */
if
(
cand1
->
fn
==
cand2
->
fn
&&
cand1
->
fn
==
ansi_opname
(
COND_EXPR
))
{
tree
c1
=
TREE_VEC_ELT
(
cand1
->
convs
,
1
);
tree
c2
=
TREE_VEC_ELT
(
cand2
->
convs
,
1
);
tree
t1
=
strip_top_quals
(
non_reference
(
TREE_TYPE
(
c1
)));
tree
t2
=
strip_top_quals
(
non_reference
(
TREE_TYPE
(
c2
)));
if
(
same_type_p
(
t1
,
t2
))
{
if
(
TREE_CODE
(
c1
)
==
REF_BIND
&&
TREE_CODE
(
c2
)
!=
REF_BIND
)
return
1
;
if
(
TREE_CODE
(
c1
)
!=
REF_BIND
&&
TREE_CODE
(
c2
)
==
REF_BIND
)
return
-
1
;
}
}
}
/* If the two functions are the same (this can happen with declarations
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment