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
e5966228
Commit
e5966228
authored
May 17, 1998
by
Jason Merrill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* class.c (instantiate_type): Don't abort on TREE_NONLOCAL_FLAG.
From-SVN: r19831
parent
0d7e147b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
23 deletions
+22
-23
gcc/cp/ChangeLog
+7
-0
gcc/cp/class.c
+15
-23
No files found.
gcc/cp/ChangeLog
View file @
e5966228
Mon May 18 03:00:57 1998 Jason Merrill <jason@yorick.cygnus.com>
* class.c (instantiate_type): Don't abort on TREE_NONLOCAL_FLAG.
Mon May 18 01:43:01 1998 Martin v. Loewis <loewis@informatik.hu-berlin.de>
* decl.c (lookup_name_real): Don't look at IDENTIFIER_LOCAL_VALUE
for a type unless it is one.
* class.c (finish_struct_1): Use OVL_CURRENT in error message.
Mon May 18 01:24:08 1998 Jeffrey A Law (law@cygnus.com)
...
...
gcc/cp/class.c
View file @
e5966228
...
...
@@ -5229,16 +5229,18 @@ instantiate_type (lhstype, rhs, complain)
tree
elem
,
baselink
,
name
=
NULL_TREE
;
if
(
TREE_PURPOSE
(
rhs
)
==
error_mark_node
)
{
/* Make sure we don't drop the non-local flag, as the old code
would rely on it. */
int
nl
=
TREE_NONLOCAL_FLAG
(
rhs
);
/* We don't need the type of this node. */
rhs
=
TREE_VALUE
(
rhs
);
my_friendly_assert
(
TREE_NONLOCAL_FLAG
(
rhs
)
==
nl
,
980331
);
}
{
/* Make sure we don't drop the non-local flag, as the old code
would rely on it. */
int
nl
=
TREE_NONLOCAL_FLAG
(
rhs
);
/* We don't need the type of this node. */
rhs
=
TREE_VALUE
(
rhs
);
my_friendly_assert
(
TREE_NONLOCAL_FLAG
(
rhs
)
==
nl
,
980331
);
}
/* Now we should have a baselink. */
my_friendly_assert
(
TREE_CODE
(
TREE_PURPOSE
(
rhs
))
==
TREE_VEC
,
980331
);
my_friendly_assert
(
TREE_CODE
(
TREE_PURPOSE
(
rhs
))
==
TREE_VEC
,
980331
);
/* First look for an exact match. Search member functions.
May have to undo what `default_conversion' might do to
lhstype. */
...
...
@@ -5247,20 +5249,10 @@ instantiate_type (lhstype, rhs, complain)
if
(
lhstype
==
error_mark_node
)
return
lhstype
;
if
(
TREE_NONLOCAL_FLAG
(
rhs
))
{
my_friendly_abort
(
980401
);
/* Got to get it as a baselink. */
rhs
=
lookup_fnfields
(
TYPE_BINFO
(
current_class_type
),
DECL_NAME
(
OVL_FUNCTION
(
rhs
)),
0
);
}
else
{
my_friendly_assert
(
TREE_CHAIN
(
rhs
)
==
NULL_TREE
,
181
);
my_friendly_assert
(
TREE_CODE
(
TREE_VALUE
(
rhs
))
==
FUNCTION_DECL
||
TREE_CODE
(
TREE_VALUE
(
rhs
))
==
OVERLOAD
,
182
);
}
my_friendly_assert
(
TREE_CHAIN
(
rhs
)
==
NULL_TREE
,
181
);
my_friendly_assert
(
TREE_CODE
(
TREE_VALUE
(
rhs
))
==
FUNCTION_DECL
||
TREE_CODE
(
TREE_VALUE
(
rhs
))
==
OVERLOAD
,
182
);
for
(
baselink
=
rhs
;
baselink
;
baselink
=
next_baselink
(
baselink
))
...
...
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