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
d720b70f
Commit
d720b70f
authored
Dec 14, 2012
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compiler: Better error message for invalid shift operations.
From-SVN: r194501
parent
13ea799b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
gcc/go/gofrontend/expressions.cc
+3
-6
No files found.
gcc/go/gofrontend/expressions.cc
View file @
d720b70f
...
@@ -5463,13 +5463,10 @@ Binary_expression::do_determine_type(const Type_context* context)
...
@@ -5463,13 +5463,10 @@ Binary_expression::do_determine_type(const Type_context* context)
// Give a useful error if that happened.
// Give a useful error if that happened.
if
(
tleft
->
is_abstract
()
if
(
tleft
->
is_abstract
()
&&
subcontext
.
type
!=
NULL
&&
subcontext
.
type
!=
NULL
&&
(
this
->
left_
->
type
()
->
integer_type
()
==
NULL
&&
!
subcontext
.
may_be_abstract
||
(
subcontext
.
type
->
integer_type
()
==
NULL
&&
subcontext
.
type
->
integer_type
()
==
NULL
)
&&
subcontext
.
type
->
float_type
()
==
NULL
&&
subcontext
.
type
->
complex_type
()
==
NULL
&&
subcontext
.
type
->
interface_type
()
==
NULL
)))
this
->
report_error
((
"invalid context-determined non-integer type "
this
->
report_error
((
"invalid context-determined non-integer type "
"for
shift operand
"
));
"for
left operand of shift
"
));
// The context for the right hand operand is the same as for the
// The context for the right hand operand is the same as for the
// left hand operand, except for a shift operator.
// left hand operand, except for a shift operator.
...
...
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