projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3c8392
)
Don't crash on invalid comparison of complex constants.
author
Ian Lance Taylor
<ian@gcc.gnu.org>
Fri, 11 Feb 2011 00:19:15 +0000
(
00:19
+0000)
committer
Ian Lance Taylor
<ian@gcc.gnu.org>
Fri, 11 Feb 2011 00:19:15 +0000
(
00:19
+0000)
From-SVN: r170037
gcc/go/gofrontend/expressions.cc
patch
|
blob
|
history
diff --git
a/gcc/go/gofrontend/expressions.cc
b/gcc/go/gofrontend/expressions.cc
index
bc27480
..
8e76516
100644
(file)
--- a/
gcc/go/gofrontend/expressions.cc
+++ b/
gcc/go/gofrontend/expressions.cc
@@
-5159,7
+5159,7
@@
Binary_expression::do_lower(Gogo*, Named_object*, int)
{
// May be a type error--let it be diagnosed later.
}
- else if (
is_comparison
)
+ else if (
op == OPERATOR_EQEQ || op == OPERATOR_NOTEQ
)
{
bool b = Binary_expression::compare_complex(op,
(left_type != NULL