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
222d4beb
Commit
222d4beb
authored
Sep 21, 2012
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compiler: Better error messages for single- and multiple- value.
From-SVN: r191621
parent
e1520358
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
gcc/go/gofrontend/gogo.cc
+1
-1
gcc/go/gofrontend/types.cc
+3
-3
No files found.
gcc/go/gofrontend/gogo.cc
View file @
222d4beb
...
...
@@ -4224,7 +4224,7 @@ Variable::determine_type()
else
if
(
type
->
is_call_multiple_result_type
())
{
error_at
(
this
->
location_
,
"single variable set to multiple
value function call"
);
"single variable set to multiple
-
value function call"
);
type
=
Type
::
make_error_type
();
}
...
...
gcc/go/gofrontend/types.cc
View file @
222d4beb
...
...
@@ -421,7 +421,7 @@ Type::are_identical(const Type* t1, const Type* t2, bool errors_are_identical,
case
TYPE_CALL_MULTIPLE_RESULT
:
if
(
reason
!=
NULL
)
*
reason
=
"invalid use of multiple
value function call"
;
*
reason
=
"invalid use of multiple
-
value function call"
;
return
false
;
default
:
...
...
@@ -627,8 +627,8 @@ Type::are_assignable_check_hidden(const Type* lhs, const Type* rhs,
if
(
rhs
->
is_call_multiple_result_type
())
{
if
(
reason
!=
NULL
)
reason
->
assign
(
_
(
"multiple
value function call in "
"single
value context"
));
reason
->
assign
(
_
(
"multiple
-
value function call in "
"single
-
value context"
));
return
false
;
}
}
...
...
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