projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a90df91
)
compiler: Fix determining types for builtin complex function.
author
Ian Lance Taylor
<ian@gcc.gnu.org>
Sat, 22 Sep 2012 06:02:35 +0000
(06:02 +0000)
committer
Ian Lance Taylor
<ian@gcc.gnu.org>
Sat, 22 Sep 2012 06:02:35 +0000
(06:02 +0000)
From-SVN: r191630
gcc/go/gofrontend/expressions.cc
patch
|
blob
|
history
diff --git
a/gcc/go/gofrontend/expressions.cc
b/gcc/go/gofrontend/expressions.cc
index 08e830e7a7544baae93fd443c5b3d1008eb8e070..b99dc5ce58e1b3ae51d9e438b7eb469757f41c75 100644
(file)
--- a/
gcc/go/gofrontend/expressions.cc
+++ b/
gcc/go/gofrontend/expressions.cc
@@
-7476,7
+7476,7
@@
Builtin_call_expression::do_determine_type(const Type_context* context)
if (args != NULL && args->size() == 2)
{
Type* t1 = args->front()->type();
- Type* t2 = args->
front
()->type();
+ Type* t2 = args->
back
()->type();
if (!t1->is_abstract())
arg_type = t1;
else if (!t2->is_abstract())