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
a7b09e17
Commit
a7b09e17
authored
Mar 31, 2015
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compiler: Mark builtin calls with bad types as errors.
Fixes golang/go/#10285. From-SVN: r221782
parent
00a0ea64
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
gcc/go/gofrontend/expressions.cc
+8
-2
No files found.
gcc/go/gofrontend/expressions.cc
View file @
a7b09e17
...
...
@@ -7959,7 +7959,10 @@ Builtin_call_expression::do_check_types(Gogo*)
Type
*
arg1_type
=
args
->
front
()
->
type
();
Type
*
arg2_type
=
args
->
back
()
->
type
();
if
(
arg1_type
->
is_error
()
||
arg2_type
->
is_error
())
break
;
{
this
->
set_is_error
();
break
;
}
Type
*
e1
;
if
(
arg1_type
->
is_slice_type
())
...
...
@@ -8001,7 +8004,10 @@ Builtin_call_expression::do_check_types(Gogo*)
}
if
(
args
->
front
()
->
type
()
->
is_error
()
||
args
->
back
()
->
type
()
->
is_error
())
break
;
{
this
->
set_is_error
();
break
;
}
Array_type
*
at
=
args
->
front
()
->
type
()
->
array_type
();
Type
*
e
=
at
->
element_type
();
...
...
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