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
54ae96de
Commit
54ae96de
authored
May 30, 2000
by
Mark Mitchell
Committed by
Mark Mitchell
May 30, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* call.c (joust): Fix handling of overloaded builtin operators.
From-SVN: r34269
parent
28ecb7ab
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
1 deletions
+18
-1
gcc/cp/ChangeLog
+4
-0
gcc/cp/call.c
+1
-1
gcc/testsuite/g++.old-deja/g++.other/overload13.C
+13
-0
No files found.
gcc/cp/ChangeLog
View file @
54ae96de
2000-05-30 Mark Mitchell <mark@codesourcery.com>
* call.c (joust): Fix handling of overloaded builtin operators.
2000-05-30 Zack Weinberg <zack@wolery.cumb.org>
* cp-tree.h (DECL_ANTICIPATED): New macro.
...
...
gcc/cp/call.c
View file @
54ae96de
...
...
@@ -5128,7 +5128,7 @@ joust (cand1, cand2, warn)
/* 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
(
DECL_OVERLOADED_OPERATOR_P
(
cand1
->
fn
)
==
COND_EXPR
)
if
(
cand1
->
fn
==
ansi_opname
(
COND_EXPR
)
)
{
tree
c1
=
TREE_VEC_ELT
(
cand1
->
convs
,
1
);
tree
c2
=
TREE_VEC_ELT
(
cand2
->
convs
,
1
);
...
...
gcc/testsuite/g++.old-deja/g++.other/overload13.C
0 → 100644
View file @
54ae96de
// Build don't link:
// Origin: Nathan Sidwell <nathan@codesourcery.com>
struct
A
{
bool
operator
==
(
A
const
&
);
operator
bool
()
const
;
operator
int
*
()
const
;
};
bool
foo
(
A
&
a1
,
A
&
a2
)
{
return
a1
==
a2
;
}
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