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
1cb47a5c
Commit
1cb47a5c
authored
Jan 01, 2000
by
Martin v. Löwis
Committed by
Martin v. Löwis
Jan 01, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* call.c (build_new_method_call): Also check destructors.
From-SVN: r31157
parent
3bdf5848
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
gcc/cp/ChangeLog
+4
-0
gcc/cp/call.c
+7
-3
No files found.
gcc/cp/ChangeLog
View file @
1cb47a5c
1999-01-01 Martin v. Lwis <loewis@informatik.hu-berlin.de>
* call.c (build_new_method_call): Also check destructors.
1999-12-31 Mark Mitchell <mark@codesourcery.com>
1999-12-31 Mark Mitchell <mark@codesourcery.com>
* cp-tree.h (VF_NORMAL_VALUE): Remove.
* cp-tree.h (VF_NORMAL_VALUE): Remove.
...
...
gcc/cp/call.c
View file @
1cb47a5c
/* Functions related to invoking methods and overloaded functions.
/* Functions related to invoking methods and overloaded functions.
Copyright (C) 1987, 92-9
7, 1998, 1999
Free Software Foundation, Inc.
Copyright (C) 1987, 92-9
9, 2000
Free Software Foundation, Inc.
Contributed by Michael Tiemann (tiemann@cygnus.com) and
Contributed by Michael Tiemann (tiemann@cygnus.com) and
modified by Brendan Kehoe (brendan@cygnus.com).
modified by Brendan Kehoe (brendan@cygnus.com).
...
@@ -4321,10 +4321,14 @@ build_new_method_call (instance, name, args, basetype_path, flags)
...
@@ -4321,10 +4321,14 @@ build_new_method_call (instance, name, args, basetype_path, flags)
if
(
DECL_PURE_VIRTUAL_P
(
cand
->
fn
)
if
(
DECL_PURE_VIRTUAL_P
(
cand
->
fn
)
&&
instance
==
current_class_ref
&&
instance
==
current_class_ref
&&
DECL_CONSTRUCTOR_P
(
current_function_decl
)
&&
(
DECL_CONSTRUCTOR_P
(
current_function_decl
)
||
DECL_DESTRUCTOR_P
(
current_function_decl
))
&&
!
(
flags
&
LOOKUP_NONVIRTUAL
)
&&
!
(
flags
&
LOOKUP_NONVIRTUAL
)
&&
value_member
(
cand
->
fn
,
CLASSTYPE_PURE_VIRTUALS
(
basetype
)))
&&
value_member
(
cand
->
fn
,
CLASSTYPE_PURE_VIRTUALS
(
basetype
)))
cp_error
(
"abstract virtual `%#D' called from constructor"
,
cand
->
fn
);
cp_error
((
DECL_CONSTRUCTOR_P
(
current_function_decl
)
?
"abstract virtual `%#D' called from constructor"
:
"abstract virtual `%#D' called from destructor"
),
cand
->
fn
);
if
(
TREE_CODE
(
TREE_TYPE
(
cand
->
fn
))
==
METHOD_TYPE
if
(
TREE_CODE
(
TREE_TYPE
(
cand
->
fn
))
==
METHOD_TYPE
&&
is_dummy_object
(
instance_ptr
))
&&
is_dummy_object
(
instance_ptr
))
{
{
...
...
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