)]}'
{
  "commit": "34314280e46da1558bc7f9cd7e8a9ed610cf417b",
  "tree": "0eef8fc2694a4a1daa28889860baa20656466609",
  "parents": [
    "faa53e17d1c91d97aa2b780ac41190d151aa6b0e"
  ],
  "author": {
    "name": "Matthew Dempsky",
    "email": "mdempsky@google.com",
    "time": "Fri Mar 27 14:33:54 2020 -0700"
  },
  "committer": {
    "name": "Matthew Dempsky",
    "email": "mdempsky@google.com",
    "time": "Tue Mar 31 20:59:14 2020 +0000"
  },
  "message": "cmd/compile: fix constant conversion involving complex types\n\nIn CL 187657, I refactored constant conversion logic without realizing\nthat conversions between int/float and complex types are allowed for\nconstants (assuming the constant values are representable by the\ndestination type), but are never allowed for non-constant expressions.\n\nThis CL expands convertop to take an extra srcConstant parameter to\nindicate whether the source expression is a constant; and if so, to\nallow any numeric-to-numeric conversion. (Conversions of values that\ncannot be represented in the destination type are rejected by\nevconst.)\n\nFixes #38117.\n\nChange-Id: Id7077d749a14c8fd910be38da170fa5254819f2b\nReviewed-on: https://go-review.googlesource.com/c/go/+/226197\nRun-TryBot: Matthew Dempsky \u003cmdempsky@google.com\u003e\nTryBot-Result: Gobot Gobot \u003cgobot@golang.org\u003e\nReviewed-by: Robert Griesemer \u003cgri@golang.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "0a2a11663e08d7b6e281687bb974b6418e45eb90",
      "old_mode": 33188,
      "old_path": "src/cmd/compile/internal/gc/subr.go",
      "new_id": "7c1ab89b78d668f8346a51d2444b881f7274264b",
      "new_mode": 33188,
      "new_path": "src/cmd/compile/internal/gc/subr.go"
    },
    {
      "type": "modify",
      "old_id": "2ca7f2dbe436ce79ee4fa3539a9c1e990361501e",
      "old_mode": 33188,
      "old_path": "src/cmd/compile/internal/gc/typecheck.go",
      "new_id": "6e04908b46471b4d4fad5c88942bdd13c63913e0",
      "new_mode": 33188,
      "new_path": "src/cmd/compile/internal/gc/typecheck.go"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "11edef7f2532d5078a2864f69e065c6e3b27c9d8",
      "new_mode": 33188,
      "new_path": "test/fixedbugs/issue38117.go"
    }
  ]
}
