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
f038ec69
Commit
f038ec69
authored
Jun 01, 2010
by
Nathan Froyd
Committed by
Nathan Froyd
Jun 01, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* typeck2.c (build_x_arrow): Make types_memoized a VEC.
From-SVN: r160119
parent
bb9a7f51
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
11 deletions
+16
-11
gcc/cp/ChangeLog
+4
-0
gcc/cp/typeck2.c
+12
-11
No files found.
gcc/cp/ChangeLog
View file @
f038ec69
2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
* typeck2.c (build_x_arrow): Make types_memoized a VEC.
2010-06-01 Arnaud Charlet <charlet@adacore.com>
Matthew Gingell <gingell@adacore.com>
...
...
gcc/cp/typeck2.c
View file @
f038ec69
...
...
@@ -1400,9 +1400,9 @@ tree
build_x_arrow
(
tree
expr
)
{
tree
orig_expr
=
expr
;
tree
types_memoized
=
NULL_TREE
;
tree
type
=
TREE_TYPE
(
expr
);
tree
last_rval
=
NULL_TREE
;
VEC
(
tree
,
gc
)
*
types_memoized
=
NULL
;
if
(
type
==
error_mark_node
)
return
error_mark_node
;
...
...
@@ -1421,19 +1421,20 @@ build_x_arrow (tree expr)
/*overloaded_p=*/
NULL
,
tf_warning_or_error
)))
{
tree
t
;
unsigned
ix
;
if
(
expr
==
error_mark_node
)
return
error_mark_node
;
if
(
value_member
(
TREE_TYPE
(
expr
),
types_memoized
))
{
error
(
"circular pointer delegation detected"
);
return
error_mark_node
;
}
else
{
types_memoized
=
tree_cons
(
NULL_TREE
,
TREE_TYPE
(
expr
),
types_memoized
);
}
for
(
ix
=
0
;
VEC_iterate
(
tree
,
types_memoized
,
ix
,
t
);
ix
++
)
if
(
TREE_TYPE
(
expr
)
==
t
)
{
error
(
"circular pointer delegation detected"
);
return
error_mark_node
;
}
VEC_safe_push
(
tree
,
gc
,
types_memoized
,
TREE_TYPE
(
expr
));
last_rval
=
expr
;
}
...
...
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