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
942f7f5a
Commit
942f7f5a
authored
Dec 08, 2014
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
re PR go/64198 (ICE in gofrontend)
PR go/64198 compiler: Don't crash on invalid ++. From-SVN: r218485
parent
58a3bd25
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
gcc/go/gofrontend/parse.cc
+6
-3
No files found.
gcc/go/gofrontend/parse.cc
View file @
942f7f5a
...
...
@@ -3190,9 +3190,12 @@ Parse::call(Expression* func)
if
(
token
->
is_op
(
OPERATOR_COMMA
))
token
=
this
->
advance_token
();
if
(
!
token
->
is_op
(
OPERATOR_RPAREN
))
error_at
(
this
->
location
(),
"missing %<)%>"
);
else
this
->
advance_token
();
{
error_at
(
this
->
location
(),
"missing %<)%>"
);
if
(
!
this
->
skip_past_error
(
OPERATOR_RPAREN
))
return
Expression
::
make_error
(
this
->
location
());
}
this
->
advance_token
();
if
(
func
->
is_error_expression
())
return
func
;
return
Expression
::
make_call
(
func
,
args
,
is_varargs
,
func
->
location
());
...
...
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