1. 09 Jan, 2016 3 commits
  2. 08 Jan, 2016 35 commits
  3. 07 Jan, 2016 2 commits
    • Brad Fitzpatrick's avatar
      net/http: add some tests around sending & receiving star requests · 40a26c92
      Brad Fitzpatrick authored
      I thought there was still work to do in http2 for this, but I guess
      not: the work for parsing them is in net/url (used by http2) and the
      handling of OPTIONS * is already in net/http serverHandler, also used
      by http2.
      
      But keep the tests.
      
      Change-Id: I566dd0a03cf13c9ea8e735c6bd32d2c521ed503b
      Reviewed-on: https://go-review.googlesource.com/18368Reviewed-by: 's avatarBlake Mizerany <blake.mizerany@gmail.com>
      Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
      40a26c92
    • Matthew Dempsky's avatar
      cmd/compile: recognize !typedbool is typed · 27691fa4
      Matthew Dempsky authored
      Adding the evconst(n) call for OANDAND and OOROR in
      golang.org/cl/18262 was originally just to parallel the above iscmp
      branch, but upon further inspection it seemed odd that removing it
      caused test/fixedbugs/issue6671.go's
      
          var b mybool
          // ...
          b = bool(true) && true // ERROR "cannot use"
      
      to start failing (i.e., by not emitting the expected "cannot use"
      error).
      
      The problem is that evconst(n)'s settrue and setfalse paths always
      reset n.Type to idealbool, even for logical operators where n.Type
      should preserve the operand type.  Adding the evconst(n) call for
      OANDAND/OOROR inadvertantly worked around this by turning the later
      evconst(n) call at line 2167 into a noop, so the "n.Type = t"
      assignment at line 739 would preserve the operand type.
      
      However, that means evconst(n) was still clobbering n.Type for ONOT,
      so declarations like:
      
          const _ bool = !mybool(true)
      
      were erroneously accepted.
      
      Update #13821.
      
      Change-Id: I18e37287f05398fdaeecc0f0d23984e244f025da
      Reviewed-on: https://go-review.googlesource.com/18362
      Run-TryBot: Matthew Dempsky <mdempsky@google.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: 's avatarRuss Cox <rsc@golang.org>
      27691fa4