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
f6e31dff
Commit
f6e31dff
authored
Oct 16, 2014
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compiler: Check for initialization cycles in bound method expressions.
Fixes issue 7961. From-SVN: r216342
parent
960224c3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
gcc/go/gofrontend/gogo.cc
+6
-5
No files found.
gcc/go/gofrontend/gogo.cc
View file @
f6e31dff
...
...
@@ -953,13 +953,14 @@ Find_var::expression(Expression** pexpr)
}
}
// We traverse the code of any function
we see. Note that this
//
means that we will traverse the code of a function whose address
// is taken even if it is not called.
// We traverse the code of any function
or bound method we see. Note that
//
this means that we will traverse the code of a function or bound method
//
whose address
is taken even if it is not called.
Func_expression
*
fe
=
e
->
func_expression
();
if
(
fe
!=
NULL
)
Bound_method_expression
*
bme
=
e
->
bound_method_expression
();
if
(
fe
!=
NULL
||
bme
!=
NULL
)
{
const
Named_object
*
f
=
fe
->
named_object
();
const
Named_object
*
f
=
fe
!=
NULL
?
fe
->
named_object
()
:
bme
->
function
();
if
(
f
->
is_function
()
&&
f
->
package
()
==
NULL
)
{
std
::
pair
<
Seen_objects
::
iterator
,
bool
>
ins
=
...
...
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