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
e76e4a68
Commit
e76e4a68
authored
Jun 10, 1998
by
Jason Merrill
Committed by
Jason Merrill
Jun 10, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* search.c (covariant_return_p): Complain about ambiguous base.
From-SVN: r20420
parent
d60ab851
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletions
+8
-1
gcc/cp/ChangeLog
+2
-0
gcc/cp/search.c
+6
-1
No files found.
gcc/cp/ChangeLog
View file @
e76e4a68
1998-06-10 Jason Merrill <jason@yorick.cygnus.com>
1998-06-10 Jason Merrill <jason@yorick.cygnus.com>
* search.c (covariant_return_p): Complain about ambiguous base.
* typeck.c (build_component_ref): Diagnose ref to nested type.
* typeck.c (build_component_ref): Diagnose ref to nested type.
1998-06-10 Brendan Kehoe <brendan@cygnus.com>
1998-06-10 Brendan Kehoe <brendan@cygnus.com>
...
...
gcc/cp/search.c
View file @
e76e4a68
...
@@ -2205,7 +2205,12 @@ covariant_return_p (brettype, drettype)
...
@@ -2205,7 +2205,12 @@ covariant_return_p (brettype, drettype)
if
(
!
IS_AGGR_TYPE
(
drettype
)
||
!
IS_AGGR_TYPE
(
brettype
))
if
(
!
IS_AGGR_TYPE
(
drettype
)
||
!
IS_AGGR_TYPE
(
brettype
))
return
-
1
;
return
-
1
;
binfo
=
get_binfo
(
brettype
,
drettype
,
0
);
binfo
=
get_binfo
(
brettype
,
drettype
,
1
);
/* If we get an error_mark_node from get_binfo, it already complained,
so let's just succeed. */
if
(
binfo
==
error_mark_node
)
return
1
;
if
(
!
BINFO_OFFSET_ZEROP
(
binfo
)
||
TREE_VIA_VIRTUAL
(
binfo
))
if
(
!
BINFO_OFFSET_ZEROP
(
binfo
)
||
TREE_VIA_VIRTUAL
(
binfo
))
return
2
;
return
2
;
...
...
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