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
e389f800
Commit
e389f800
authored
Oct 27, 1998
by
Jason Merrill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
From-SVN: r23375
parent
03acd8f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
gcc/testsuite/g++.old-deja/g++.robertl/eb43.C
+6
-3
No files found.
gcc/testsuite/g++.old-deja/g++.robertl/eb43.C
View file @
e389f800
// excess errors test - XFAIL *-*-*
// All the pointer_to_binary_function cases used to fail because g++
// couldn't handle converting an overloaded function to a class type.
// The first one should still fail because it requires an implicit conversion
// to pointer_to_binary_function, which has an `explicit' constructor.
#include <vector.h>
#include <algo.h>
...
...
@@ -13,7 +16,7 @@ public :
template
<
class
T
>
inline
bool
compare
(
const
Expr
<
T
>
a
,
const
Expr
<
T
>
b
){
return
true
;
};
void
main
()
int
main
()
{
vector
<
int
>
a
(
3
);
sort
(
a
.
begin
(),
a
.
end
(),
...
...
@@ -21,7 +24,7 @@ void main()
sort
(
a
.
begin
(),
a
.
end
(),
compare
<
int
>
);
sort
<
vector
<
int
>::
iterator
,
pointer_to_binary_function
<
const
Expr
<
int
>
,
const
Expr
<
int
>
,
bool
>
>
(
a
.
begin
(),
a
.
end
(),
compare
);
(
a
.
begin
(),
a
.
end
(),
compare
);
// ERROR - constructor is explicit
sort
(
a
.
begin
(),
a
.
end
(),
ptr_fun
<
const
Expr
<
int
>
,
const
Expr
<
int
>
,
bool
>
(
compare
)
);
sort
(
a
.
begin
(),
a
.
end
(),
...
...
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