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
3d879eac
Commit
3d879eac
authored
Apr 21, 1998
by
Jason Merrill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(convert_for_assignment): Fix handling of pmfs.
From-SVN: r19360
parent
4ceb7595
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
gcc/cp/typeck.c
+5
-3
No files found.
gcc/cp/typeck.c
View file @
3d879eac
...
@@ -6844,9 +6844,11 @@ convert_for_assignment (type, rhs, errtype, fndecl, parmnum)
...
@@ -6844,9 +6844,11 @@ convert_for_assignment (type, rhs, errtype, fndecl, parmnum)
&&
TYPE_PTRMEMFUNC_P
(
type
))
&&
TYPE_PTRMEMFUNC_P
(
type
))
{
{
tree
ttl
=
TYPE_PTRMEMFUNC_FN_TYPE
(
type
);
tree
ttl
=
TYPE_PTRMEMFUNC_FN_TYPE
(
type
);
tree
ttr
=
(
TREE_CODE
(
rhstype
)
==
POINTER_TYPE
?
rhstype
tree
ttr
=
(
TYPE_PTRMEMFUNC_P
(
rhstype
)
:
TYPE_PTRMEMFUNC_FN_TYPE
(
rhstype
));
?
TYPE_PTRMEMFUNC_FN_TYPE
(
rhstype
)
int
ctt
=
comp_target_types
(
ttl
,
ttr
,
1
);
:
rhstype
);
int
ctt
=
(
TREE_CODE
(
rhstype
)
==
INTEGER_TYPE
?
1
:
comp_target_types
(
ttl
,
ttr
,
1
));
if
(
ctt
<
0
)
if
(
ctt
<
0
)
cp_pedwarn
(
"converting `%T' to `%T' is a contravariance violation"
,
cp_pedwarn
(
"converting `%T' to `%T' is a contravariance violation"
,
...
...
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