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
7e2fbe93
Commit
7e2fbe93
authored
Jun 02, 1998
by
Robert Lipe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Corrections, per Martin.
From-SVN: r20189
parent
72f8240e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
gcc/testsuite/g++.old-deja/g++.robertl/eb22.C
+8
-6
No files found.
gcc/testsuite/g++.old-deja/g++.robertl/eb22.C
View file @
7e2fbe93
// Build don't link:
// XFAIL, doesn't.
// Ambiguous conversion, three candidates:
// builtin == (int, int), and the two user-defined operators
// Each one requires a user-defined ICS where another uses builtin conversions,
// so none is the best viable function.
class
MyInt
{
...
...
@@ -9,16 +11,16 @@ public:
};
bool
operator
==
(
const
MyInt
&
a
,
const
int
&
b
)
{
{
// ERROR - candidate
return
(
int
)
a
==
b
;
}
bool
operator
==
(
const
MyInt
&
a
,
const
MyInt
&
b
)
{
{
// ERROR - candidate
return
(
int
)
a
==
(
int
)
b
;
}
bool
f
()
{
return
3
==
MyInt
();
}
return
3
==
MyInt
();
// ERROR - ambiguous
}
// ERROR - no return value
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