diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-09-22 06:02:35 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-09-22 06:02:35 +0000 |
commit | a7a904566298c4a7a5712ddc0f631f843224ff0b (patch) | |
tree | c437ce5b33bcfc720a29cdafb32fc6daa0b00a86 /gcc/go | |
parent | a90df91ef10b17abd7edf0c0794ef40ece82591c (diff) | |
download | gcc-a7a904566298c4a7a5712ddc0f631f843224ff0b.zip gcc-a7a904566298c4a7a5712ddc0f631f843224ff0b.tar.gz gcc-a7a904566298c4a7a5712ddc0f631f843224ff0b.tar.bz2 |
compiler: Fix determining types for builtin complex function.
From-SVN: r191630
Diffstat (limited to 'gcc/go')
-rw-r--r-- | gcc/go/gofrontend/expressions.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/go/gofrontend/expressions.cc b/gcc/go/gofrontend/expressions.cc index 08e830e..b99dc5c 100644 --- 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()) |