]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
compiler: Fix determining types for builtin complex function.
authorIan Lance Taylor <ian@gcc.gnu.org>
Sat, 22 Sep 2012 06:02:35 +0000 (06:02 +0000)
committerIan 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

index 08e830e7a7544baae93fd443c5b3d1008eb8e070..b99dc5ce58e1b3ae51d9e438b7eb469757f41c75 100644 (file)
@@ -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())