1
0
mirror of https://github.com/golang/go synced 2024-11-17 18:24:45 -07:00
go/test/fixedbugs
Russ Cox a987aaf5f7 cmd/compile: require -p flag
The -p flag specifies the import path of the package being compiled.
This CL makes it required when invoking the compiler and
adjusts tests that invoke the compiler directly to conform to this
new requirement. The go command already passes the flag, so it
is unmodified in this CL. It is expected that any other Go build systems
also already pass -p, or else they will need to arrange to do so before
updating to Go 1.19. Of particular note, Bazel already does for rules
with an importpath= attribute, which includes all Gazelle-generated rules.

There is more cleanup possible now in cmd/compile, cmd/link,
and other consumers of Go object files, but that is left to future CLs.

Additional historical background follows but can be ignored.

Long ago, before the go command, or modules, or any kind of
versioning, symbols in Go archive files were named using just the
package name, so that for example func F in math/rand and func F in
crypto/rand would both be the object file symbol 'rand.F'. This led to
collisions even in small source trees, which made certain packages
unusable in the presence of other packages and generally was a problem
for Go's goal of scaling to very large source trees.

Fixing this problem required changing from package names to import
paths in symbol names, which was mostly straightforward. One wrinkle,
though, is that the compiler did not know the import path of the
package being compiled; it only knew the package name. At the time,
there was no go command, just Makefiles that people had invoking 6g
(now “go tool compile”) and then copying the resulting object file to
an importable location. That is, everyone had a custom build setup for
Go, because there was no standard one. So it was not particularly
attractive to change how the compiler was invoked, since that would
break approximately every Go user at the time. Instead, we arranged
for the compiler to emit, and other tools reading object files to
recognize, a special import path (the empty string, it turned out)
denoting “the import path of this object file”. This worked well
enough at the time and maintained complete command-line compatibility
with existing Go usage.

The changes implementing this transition can be found by searching
the Git history for “package global name space”, which is what they
eliminated. In particular, CL 190076 (a6736fa4), CL 186263 (758f2bc5),
CL 193080 (1cecac81), CL 194053 (19126320), and CL 194071 (531e6b77)
did the bulk of this transformation in January 2010.

Later, in September 2011, we added the -p flag to the compiler for
diagnostic purposes. The problem was that it was easy to create import
cycles, especially in tests, and these could not be diagnosed until
link time. You'd really want the compiler to diagnose these, for
example if the compilation of package sort noticed it was importing a
package that itself imported "sort". But the compilation of package
sort didn't know its own import path, and so it could not tell whether
it had found itself as a transitive dependency. Adding the -p flag
solved this problem, and its use was optional, since the linker would
still diagnose the import cycle in builds that had not updated to
start passing -p. This was CL 4972057 (1e480cd1).

There was still no go command at this point, but when we introduced
the go command we made it pass -p, which it has for many years at this
point.

Over time, parts of the compiler began to depend on the presence of
the -p flag for various reasonable purposes. For example:

In CL 6497074 (041fc8bf; Oct 2012), the race detector used -p to
detect packages that should not have race annotations, such as
runtime/race and sync/atomic.

In CL 13367052 (7276c02b; Sep 2013), a bug fix used -p to detect the
compilation of package reflect.

In CL 30539 (8aadcc55; Oct 2016), the compiler started using -p to
identify package math, to be able to intrinsify calls to Sqrt inside
that package.

In CL 61019 (9daee931; Sep 2017), CL 71430 (2c1d2e06; Oct 2017), and
later related CLs, the compiler started using the -p value when
creating various DWARF debugging information.

In CL 174657 (cc5eaf93; May 2019), the compiler started writing
symbols without the magic empty string whenever -p was used, to reduce
the amount of work required in the linker.

In CL 179861 (dde7c770; Jun 2019), the compiler made the second
argument to //go:linkname optional when -p is used, because in that
case the compiler can derive an appropriate default.

There are more examples. Today it is impossible to compile the Go
standard library without using -p, and DWARF debug information is
incomplete without using -p.

All known Go build systems pass -p. In particular, the go command
does, which is what nearly all Go developers invoke to build Go code.
And Bazel does, for go_library rules that set the importpath
attribute, which is all rules generated by Gazelle.

Gccgo has an equivalent of -p and has required its use in order to
disambiguate packages with the same name but different import paths
since 2010.

On top of all this, various parts of code generation for generics
are made more complicated by needing to cope with the case where -p
is not specified, even though it's essentially always specified.

In summary, the current state is:

 - Use of the -p flag with cmd/compile is required for building
   the standard library, and for complete DWARF information,
   and to enable certain linker speedups.

 - The go command and Bazel, which we expect account for just
   about 100% of Go builds, both invoke cmd/compile with -p.

 - The code in cmd/compile to support builds without -p is
   complex and has become more complex with generics, but it is
   almost always dead code and therefore not worth maintaining.

 - Gccgo already requires its equivalent of -p in any build
   where two packages have the same name.

All this supports the change in this CL, which makes -p required
and adjusts tests that invoke cmd/compile to add -p appropriately.

Future CLs will be able to remove all the code dealing with the
possibility of -p not having been specified.

Change-Id: I6b95b9d4cffe59c7bac82eb273ef6c4a67bb0e43
Reviewed-on: https://go-review.googlesource.com/c/go/+/391014
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
2022-03-09 21:31:58 +00:00
..
bug083.dir
bug088.dir
bug106.dir
bug133.dir
bug160.dir
bug191.dir
bug222.dir
bug248.dir
bug282.dir
bug302.dir
bug306.dir
bug313.dir
bug322.dir
bug324.dir
bug335.dir
bug345.dir
bug367.dir
bug369.dir
bug377.dir
bug382.dir
bug392.dir
bug396.dir
bug404.dir
bug407.dir
bug414.dir
bug415.dir
bug424.dir
bug437.dir
bug448.dir
bug460.dir
bug465.dir
bug466.dir
bug467.dir
bug468.dir
bug472.dir
bug478.dir
bug479.dir
bug480.dir
bug488.dir
bug492.dir
bug504.dir
bug506.dir
bug507.dir
bug510.dir
bug511.dir
gcc67968.dir
issue3552.dir
issue4252.dir
issue4326.dir
issue4370.dir
issue4510.dir test: re-enable most go/tests that were disabled because of types2 differences 2022-01-11 02:26:58 +00:00
issue4590.dir
issue4879.dir
issue4932.dir
issue4964.dir
issue5105.dir
issue5125.dir
issue5259.dir
issue5260.dir
issue5291.dir
issue5470.dir
issue5614.dir
issue5755.dir
issue5910.dir
issue5957.dir
issue6295.dir
issue6513.dir
issue6789.dir
issue7023.dir
issue7648.dir
issue7995b.dir
issue8060.dir
issue8280.dir
issue9355.dir
issue9537.dir
issue9608.dir
issue10066.dir
issue10219.dir
issue10700.dir
issue11053.dir
issue11656.dir test: workaround SIGILL on issue11656 on aix 2022-01-11 15:28:40 +00:00
issue12677.dir
issue13777.dir
issue14164.dir
issue14331.dir
issue15071.dir
issue15470.dir
issue15514.dir
issue15548.dir
issue15572.dir
issue15609.dir
issue15646.dir
issue15838.dir
issue15920.dir
issue16133.dir
issue16317.dir
issue16616.dir
issue18419.dir
issue18895.dir
issue18911.dir
issue19028.dir
issue19261.dir
issue19467.dir
issue19507.dir
issue19548.dir
issue19699.dir
issue19764.dir
issue20014.dir
issue20682.dir
issue21120.dir
issue22877.dir
issue22941.dir
issue22962.dir
issue23179.dir
issue23311.dir
issue24693.dir
issue24761.dir
issue24801.dir
issue25055.dir
issue25984.dir
issue26341.dir
issue27836.dir
issue29610.dir
issue29612.dir
issue29919.dir
issue30659.dir
issue30862.dir
issue30907.dir
issue30908.dir
issue31053.dir
issue31252.dir
issue31636.dir
issue31637.dir
issue31959.dir
issue32595.dir
issue32778.dir
issue32901.dir all: use reflect.{Pointer,PointerTo} 2021-10-26 14:24:17 +00:00
issue32922.dir
issue33013.dir
issue33020.dir
issue33020a.dir
issue33158.dir
issue33219.dir
issue33739.dir
issue33866.dir
issue34503.dir
issue34577.dir
issue35586.dir
issue35739.dir
issue36085.dir
issue37513.dir
issue37837.dir
issue40252.dir
issue42284.dir
issue42401.dir
issue43164.dir
issue43479.dir
issue43551.dir
issue43633.dir
issue43962.dir
issue44325.dir
issue44330.dir
issue44335.dir
issue44355.dir
issue44370.dir
issue44732.dir
issue45503.dir
issue46653.dir
issue47068.dir
issue47087.dir
issue47131.dir
issue47185.dir
issue47201.dir test: re-enable a bunch of tests with types2 2021-12-03 16:24:32 +00:00
issue47317.dir
issue48088.dir
issue49016.dir cmd/compile: fix crawling of embeddable types during inline 2021-10-20 17:26:58 +00:00
issue49094.dir cmd/compile: only look for struct type when crawling inline body 2021-10-22 00:57:18 +00:00
issue49143.dir cmd/compile: fix generic type handling when crawling inline body 2021-10-27 05:33:58 +00:00
bug000.go
bug002.go
bug003.go
bug004.go
bug005.go
bug006.go
bug007.go
bug008.go
bug009.go
bug010.go
bug011.go
bug012.go
bug013.go
bug014.go
bug015.go
bug016.go
bug017.go
bug020.go
bug021.go
bug022.go
bug023.go
bug024.go
bug026.go
bug027.go
bug028.go
bug030.go
bug031.go
bug035.go
bug037.go
bug039.go
bug040.go
bug045.go
bug046.go
bug047.go
bug048.go
bug049.go
bug050.go
bug051.go
bug052.go
bug053.go
bug054.go
bug055.go
bug056.go
bug057.go
bug058.go
bug059.go
bug060.go
bug061.go
bug062.go cmd/compile/internal/types2: avoid "declared but not used" errors for invalid code 2021-09-23 19:41:45 +00:00
bug063.go
bug064.go
bug065.go
bug066.go
bug067.go
bug068.go
bug069.go
bug070.go
bug071.go
bug072.go
bug073.go
bug074.go
bug075.go
bug076.go
bug077.go
bug078.go
bug080.go
bug081.go
bug082.go
bug083.go
bug084.go
bug085.go
bug086.go
bug087.go
bug088.go
bug089.go
bug090.go
bug091.go
bug092.go
bug093.go
bug094.go
bug096.go
bug097.go
bug098.go
bug099.go
bug101.go
bug102.go
bug103.go
bug104.go
bug106.go
bug107.go
bug108.go
bug109.go
bug110.go
bug111.go
bug112.go
bug113.go
bug114.go
bug115.go
bug116.go
bug117.go
bug118.go
bug119.go
bug120.go
bug121.go
bug122.go
bug123.go
bug126.go
bug127.go
bug128.go
bug129.go
bug130.go
bug131.go cmd/compile/internal/types2: avoid "declared but not used" errors for invalid code 2021-09-23 19:41:45 +00:00
bug132.go
bug133.go
bug135.go
bug136.go
bug137.go
bug139.go
bug140.go
bug141.go
bug142.go
bug143.go
bug144.go
bug145.go
bug146.go
bug147.go
bug148.go
bug149.go
bug150.go
bug151.go
bug152.go
bug154.go
bug155.go
bug156.go
bug157.go
bug158.go
bug159.go
bug160.go
bug161.go
bug163.go
bug164.go
bug165.go
bug167.go
bug168.go
bug169.go
bug170.go
bug171.go
bug172.go
bug173.go
bug174.go
bug175.go cmd/compile/internal/types2: avoid "declared but not used" errors for invalid code 2021-09-23 19:41:45 +00:00
bug176.go test: re-enable most go/tests that were disabled because of types2 differences 2022-01-11 02:26:58 +00:00
bug177.go
bug178.go
bug179.go
bug180.go
bug181.go
bug182.go
bug183.go
bug184.go
bug185.go
bug186.go
bug187.go
bug188.go
bug189.go
bug190.go
bug191.go
bug192.go
bug193.go go/types, types2: report error for invalid string(1 << s) 2022-01-18 23:59:40 +00:00
bug194.go
bug195.go test: re-enable most go/tests that were disabled because of types2 differences 2022-01-11 02:26:58 +00:00
bug196.go
bug197.go
bug198.go
bug199.go
bug200.go
bug201.go
bug202.go
bug203.go
bug204.go
bug205.go
bug206.go
bug206.out
bug207.go
bug208.go
bug209.go
bug212.go
bug213.go
bug214.go
bug215.go
bug216.go
bug217.go
bug218.go
bug219.go
bug221.go
bug222.go
bug223.go
bug224.go
bug225.go
bug227.go
bug228.go test: re-enable most go/tests that were disabled because of types2 differences 2022-01-11 02:26:58 +00:00
bug228a.go test: re-enable most go/tests that were disabled because of types2 differences 2022-01-11 02:26:58 +00:00
bug229.go
bug230.go
bug231.go test: re-enable most go/tests that were disabled because of types2 differences 2022-01-11 02:26:58 +00:00
bug232.go
bug233.go
bug234.go
bug235.go
bug236.go
bug237.go
bug238.go
bug239.go
bug240.go
bug241.go
bug242.go
bug243.go
bug244.go
bug245.go
bug246.go
bug247.go
bug248.go
bug249.go
bug250.go
bug251.go
bug252.go
bug253.go
bug254.go
bug255.go go/types, types2: better error message for invalid array length 2022-02-11 22:01:05 +00:00
bug256.go
bug257.go
bug258.go
bug259.go
bug260.go
bug261.go
bug262.go
bug263.go
bug264.go
bug265.go
bug266.go
bug267.go
bug269.go
bug271.go
bug272.go
bug273.go
bug274.go
bug275.go
bug276.go
bug277.go
bug278.go
bug279.go
bug280.go
bug281.go
bug282.go
bug283.go
bug284.go
bug285.go
bug286.go
bug287.go
bug288.go
bug289.go cmd/compile/internal/types2: avoid "declared but not used" errors for invalid code 2021-09-23 19:41:45 +00:00
bug290.go
bug291.go
bug292.go
bug293.go
bug294.go
bug295.go
bug296.go
bug297.go
bug298.go
bug299.go
bug300.go
bug301.go
bug302.go cmd/compile: require -p flag 2022-03-09 21:31:58 +00:00
bug303.go
bug304.go
bug305.go
bug306.go
bug307.go
bug308.go
bug309.go
bug311.go
bug312.go
bug313.go
bug314.go
bug315.go
bug316.go
bug317.go
bug318.go
bug319.go
bug320.go
bug321.go
bug322.go
bug323.go
bug324.go
bug325.go
bug326.go cmd/compile/internal/types2: report types for mismatched call and return statements 2021-11-24 20:57:46 +00:00
bug327.go
bug328.go
bug328.out
bug329.go
bug330.go
bug331.go
bug332.go
bug333.go
bug334.go
bug335.go
bug336.go
bug337.go
bug338.go
bug339.go
bug340.go
bug341.go
bug342.go
bug343.go
bug344.go
bug345.go
bug346.go
bug347.go
bug348.go
bug349.go
bug350.go
bug351.go
bug352.go
bug353.go
bug354.go
bug355.go
bug356.go
bug357.go
bug358.go
bug361.go
bug362.go
bug363.go
bug364.go
bug365.go
bug366.go
bug367.go
bug368.go
bug369.go cmd/compile: require -p flag 2022-03-09 21:31:58 +00:00
bug370.go
bug371.go
bug372.go
bug373.go
bug374.go
bug375.go
bug376.go
bug377.go
bug378.go
bug379.go
bug380.go
bug381.go
bug382.go
bug383.go
bug384.go
bug385_32.go
bug385_64.go
bug386.go
bug387.go
bug388.go test: re-enable most go/tests that were disabled because of types2 differences 2022-01-11 02:26:58 +00:00
bug388a.go test: re-enable most go/tests that were disabled because of types2 differences 2022-01-11 02:26:58 +00:00
bug389.go cmd/compile: match Go 1.17 compiler error messages more closely 2021-11-12 23:07:01 +00:00
bug390.go
bug391.go
bug392.go
bug393.go
bug394.go
bug396.go
bug397.go
bug398.go
bug399.go
bug401.go
bug402.go
bug403.go
bug404.go
bug405.go
bug406.go
bug407.go
bug409.go
bug409.out
bug410.go
bug411.go
bug412.go test: re-enable most go/tests that were disabled because of types2 differences 2022-01-11 02:26:58 +00:00
bug413.go
bug414.go
bug415.go
bug416.go
bug417.go
bug418.go
bug419.go
bug420.go
bug421.go
bug422.go
bug423.go
bug424.go
bug425.go
bug426.go
bug427.go
bug428.go
bug430.go
bug431.go
bug432.go
bug433.go
bug434.go
bug435.go
bug436.go
bug437.go
bug438.go
bug439.go
bug440_32.go
bug440_64.go
bug441.go
bug442.go
bug443.go
bug444.go
bug445.go
bug446.go
bug447.go
bug448.go
bug449.go
bug450.go
bug451.go
bug452.go
bug453.go
bug454.go
bug455.go
bug456.go
bug457.go
bug458.go
bug459.go
bug460.go
bug461.go
bug462.go
bug463.go
bug464.go
bug465.go
bug466.go
bug467.go
bug468.go
bug470.go
bug471.go
bug472.go
bug473.go
bug474.go
bug475.go
bug476.go
bug477.go
bug478.go
bug479.go
bug480.go
bug481.go
bug482.go
bug483.go
bug484.go
bug485.go
bug486.go
bug487.go
bug488.go
bug489.go
bug490.go
bug491.go
bug492.go
bug493.go
bug494.go
bug495.go
bug496.go
bug497.go
bug498.go
bug499.go
bug500.go
bug501.go
bug502.go
bug503.go
bug504.go
bug505.go
bug506.go
bug507.go
bug508.go
bug509.go
bug510.go
bug511.go
bug512.go
bug513.go
bug514.go
bug515.go test: add notinheap test that caused a gofrontend crash 2022-02-13 18:51:07 +00:00
bug1515.go
bug13343.go
bug19403.go
gcc61204.go
gcc61244.go
gcc61246.go
gcc61248.go
gcc61253.go
gcc61254.go
gcc61255.go
gcc61258.go
gcc61264.go
gcc61265.go
gcc61273.go
gcc65755.go
gcc67968.go
gcc78763.go
gcc80226.go
gcc89321.go
gcc101994.go
issue887.go
issue1304.go
issue2615.go
issue3552.go
issue3705.go
issue3783.go
issue3925.go
issue4066.go
issue4085a.go
issue4085b.go
issue4097.go
issue4099.go
issue4162.go
issue4167.go
issue4215.go cmd/compile, go/types: restore 'too many return values' error for func with no results 2022-01-18 21:43:02 +00:00
issue4232.go test: re-enable most go/tests that were disabled because of types2 differences 2022-01-11 02:26:58 +00:00
issue4251.go
issue4252.go
issue4264.go
issue4283.go
issue4313.go
issue4316.go
issue4323.go
issue4326.go
issue4348.go
issue4353.go
issue4359.go
issue4365.go
issue4370.go
issue4396a.go
issue4396b.go
issue4399.go
issue4405.go
issue4429.go
issue4448.go
issue4452.go test: re-enable most go/tests that were disabled because of types2 differences 2022-01-11 02:26:58 +00:00
issue4458.go
issue4463.go
issue4468.go
issue4470.go
issue4495.go
issue4510.go
issue4517a.go
issue4517b.go
issue4517c.go
issue4517d.go
issue4518.go
issue4529.go
issue4545.go
issue4562.go
issue4585.go
issue4590.go
issue4610.go
issue4614.go
issue4618.go
issue4620.go
issue4654.go
issue4663.go
issue4667.go
issue4734.go
issue4748.go
issue4752.go
issue4776.go
issue4785.go
issue4813.go
issue4847.go
issue4879.go
issue4909a.go
issue4909b.go
issue4932.go
issue4964.go
issue5002.go
issue5056.go
issue5089.go
issue5105.go
issue5125.go
issue5162.go
issue5172.go
issue5231.go
issue5244.go
issue5259.go
issue5260.go
issue5291.go
issue5358.go
issue5373.go
issue5470.go
issue5493.go
issue5515.go
issue5581.go
issue5607.go
issue5609.go test: re-enable a bunch of tests with types2 2021-12-03 16:24:32 +00:00
issue5614.go
issue5698.go
issue5704.go
issue5753.go
issue5755.go
issue5793.go
issue5809.go
issue5820.go
issue5841.go
issue5856.go
issue5910.go
issue5957.go
issue5963.go
issue6004.go cmd/compile/internal/types2: print "nil" rather than "untyped nil" 2021-11-22 23:51:43 +00:00
issue6036.go
issue6055.go
issue6131.go
issue6140.go
issue6247.go
issue6269.go
issue6295.go
issue6298.go
issue6399.go
issue6402.go cmd/compile/internal/types2: print "nil" rather than "untyped nil" 2021-11-22 23:51:43 +00:00
issue6403.go
issue6405.go
issue6406.go
issue6428.go
issue6500.go
issue6513.go
issue6572.go cmd/compile: match Go 1.17 compiler error messages more closely 2021-11-12 23:07:01 +00:00
issue6671.go
issue6703a.go
issue6703b.go
issue6703c.go
issue6703d.go
issue6703e.go
issue6703f.go
issue6703g.go
issue6703h.go
issue6703i.go
issue6703j.go
issue6703k.go
issue6703l.go
issue6703m.go
issue6703n.go
issue6703o.go
issue6703p.go
issue6703q.go
issue6703r.go
issue6703s.go
issue6703t.go
issue6703u.go
issue6703v.go
issue6703w.go
issue6703x.go
issue6703y.go
issue6703z.go
issue6750.go
issue6772.go
issue6789.go
issue6847.go
issue6866.go
issue6889.go
issue6899.go
issue6899.out
issue6902.go
issue6964.go
issue6977.go
issue7023.go
issue7044.go
issue7050.go
issue7083.go
issue7129.go
issue7150.go
issue7153.go
issue7214.go
issue7223.go cmd/compile/internal/types2: print "nil" rather than "untyped nil" 2021-11-22 23:51:43 +00:00
issue7272.go
issue7310.go
issue7316.go
issue7346.go
issue7366.go
issue7405.go
issue7419.go
issue7525.go test: re-enable most go/tests that were disabled because of types2 differences 2022-01-11 02:26:58 +00:00
issue7525b.go test: re-enable most go/tests that were disabled because of types2 differences 2022-01-11 02:26:58 +00:00
issue7525c.go test: re-enable most go/tests that were disabled because of types2 differences 2022-01-11 02:26:58 +00:00
issue7525d.go test: re-enable most go/tests that were disabled because of types2 differences 2022-01-11 02:26:58 +00:00
issue7525e.go test: re-enable most go/tests that were disabled because of types2 differences 2022-01-11 02:26:58 +00:00
issue7538a.go
issue7538b.go
issue7547.go
issue7550.go
issue7590.go
issue7648.go
issue7675.go
issue7690.go
issue7740.go
issue7742.go
issue7746.go
issue7760.go
issue7794.go
issue7863.go
issue7867.go
issue7884.go
issue7921.go
issue7944.go
issue7995.go
issue7995b.go
issue7996.go
issue7997.go
issue7998.go
issue8004.go
issue8011.go
issue8017.go
issue8028.go
issue8036.go
issue8039.go
issue8042.go
issue8047.go
issue8047b.go
issue8048.go
issue8060.go
issue8073.go
issue8074.go
issue8076.go
issue8079.go
issue8132.go
issue8139.go
issue8154.go
issue8155.go
issue8158.go
issue8183.go
issue8280.go
issue8311.go
issue8325.go
issue8336.go
issue8347.go
issue8385.go
issue8438.go
issue8440.go
issue8475.go
issue8501.go
issue8507.go
issue8606.go
issue8606b.go test: make issue8606b test more robust 2021-11-18 02:53:02 +00:00
issue8612.go
issue8613.go
issue8620.go
issue8745.go
issue8761.go
issue8836.go
issue8947.go
issue8961.go
issue9006.go
issue9017.go
issue9036.go
issue9076.go
issue9083.go cmd/compile/internal/types2: avoid "declared but not used" errors for invalid code 2021-09-23 19:41:45 +00:00
issue9110.go
issue9321.go
issue9355.go cmd/compile: require -p flag 2022-03-09 21:31:58 +00:00
issue9370.go
issue9432.go
issue9521.go cmd/compile: match Go 1.17 compiler error messages more closely 2021-11-12 23:07:01 +00:00
issue9537.go
issue9604.go
issue9604b.go
issue9608.go
issue9634.go
issue9691.go
issue9731.go
issue9738.go
issue9862_run.go
issue9862.go
issue10047.go
issue10066.go
issue10135.go
issue10219.go
issue10253.go
issue10284.go
issue10320.go
issue10332.go
issue10353.go
issue10407.go
issue10441.go
issue10486.go
issue10607.go
issue10607a.go
issue10654.go
issue10700.go
issue10925.go
issue10958.go
issue10975.go
issue10977.go
issue11053.go
issue11053.out
issue11256.go
issue11286.go
issue11326.go
issue11326b.go
issue11354.go
issue11359.go
issue11361.go
issue11362.go
issue11369.go
issue11370.go
issue11371.go
issue11590.go test: re-enable most go/tests that were disabled because of types2 differences 2022-01-11 02:26:58 +00:00
issue11610.go test: re-enable most go/tests that were disabled because of types2 differences 2022-01-11 02:26:58 +00:00
issue11610a.go test: re-enable most go/tests that were disabled because of types2 differences 2022-01-11 02:26:58 +00:00
issue11614.go test: re-enable most go/tests that were disabled because of types2 differences 2022-01-11 02:26:58 +00:00
issue11656.go test: workaround SIGILL on issue11656 on aix 2022-01-11 15:28:40 +00:00
issue11674.go
issue11699.go
issue11737.go go/types, types2: better error messages for comparisons 2022-02-04 23:42:25 +00:00
issue11750.go
issue11771.go cmd/compile: require -p flag 2022-03-09 21:31:58 +00:00
issue11790.go
issue11945.go
issue11987.go
issue12006.go
issue12108.go
issue12133.go
issue12226.go
issue12347.go
issue12411.go
issue12413.go
issue12525.go
issue12536.go
issue12577.go
issue12588.go
issue12621.go
issue12677.go
issue12686.go
issue12944.go
issue13160.go
issue13162.go
issue13169.go
issue13171.go
issue13248.go
issue13261.go
issue13262.go
issue13263.go
issue13265.go
issue13266.go
issue13268.go
issue13273.go
issue13274.go
issue13319.go
issue13337.go
issue13365.go
issue13415.go
issue13471.go
issue13480.go
issue13485.go
issue13539.go
issue13559.go
issue13587.go
issue13684.go
issue13777.go
issue13779.go
issue13799.go
issue13821.go
issue13821b.go
issue14006.go
issue14010.go
issue14136.go
issue14164.go
issue14321.go
issue14331.go
issue14405.go
issue14520.go test: re-enable most go/tests that were disabled because of types2 differences 2022-01-11 02:26:58 +00:00
issue14520a.go test: re-enable most go/tests that were disabled because of types2 differences 2022-01-11 02:26:58 +00:00
issue14540.go
issue14553.go
issue14591.go
issue14636.go
issue14646.go
issue14651.go
issue14652.go all: avoid use of cmd/compile -G flag in tests 2022-03-01 19:45:34 +00:00
issue14725.go
issue14729.go
issue14988.go
issue14999.go
issue15002.go
issue15013.go
issue15039.go
issue15042.go
issue15055.go
issue15071.go
issue15084.go
issue15091.go
issue15141.go
issue15175.go
issue15252.go
issue15277.go
issue15281.go
issue15303.go
issue15311.go
issue15329.go
issue15439.go
issue15470.go
issue15514.go
issue15528.go
issue15548.go
issue15550.go
issue15572.go
issue15585.go
issue15602.go
issue15604.go
issue15609.go
issue15611.go
issue15646.go
issue15722.go
issue15733.go
issue15747.go
issue15747b.go
issue15838.go
issue15895.go
issue15898.go
issue15902.go
issue15920.go
issue15926.go
issue15961.go
issue15975.go
issue15988.go
issue15992.go
issue15992.out
issue16008.go test/fixedbugs: fix go directive of issue16008.go 2021-11-26 13:06:40 +00:00
issue16016.go
issue16037_run.go
issue16095.go
issue16130.go
issue16133.go
issue16193.go
issue16249.go
issue16306.go
issue16317.go
issue16331.go
issue16369.go
issue16428.go test: re-enable a bunch of tests with types2 2021-12-03 16:24:32 +00:00
issue16439.go
issue16515.go
issue16616.go
issue16733.go
issue16741.go
issue16760.go
issue16804.go
issue16870.go
issue16948.go
issue16949.go
issue16985.go
issue17005.go
issue17038.go test: re-enable most go/tests that were disabled because of types2 differences 2022-01-11 02:26:58 +00:00
issue17039.go
issue17111.go
issue17194.go
issue17270.go
issue17318.go
issue17328.go
issue17381.go
issue17449.go
issue17551.go
issue17588.go
issue17596.go
issue17631.go
issue17640.go
issue17645.go test: re-enable a bunch of tests with types2 2021-12-03 16:24:32 +00:00
issue17710.go
issue17752.go
issue17758.go
issue17918.go
issue18089.go
issue18092.go
issue18149.go
issue18231.go
issue18331.go
issue18392.go
issue18393.go
issue18410.go
issue18419.go
issue18459.go
issue18595.go
issue18636.go
issue18640.go
issue18655.go
issue18661.go
issue18725.go
issue18747.go
issue18808.go
issue18882.go
issue18895.go
issue18906.go
issue18911.go
issue18915.go
issue18994.go
issue19012.go test: re-enable most go/tests that were disabled because of types2 differences 2022-01-11 02:26:58 +00:00
issue19028.go
issue19040.go
issue19056.go
issue19078.go
issue19084.go
issue19113.go
issue19137.go
issue19168.go
issue19182.go
issue19201.go
issue19217.go
issue19246.go
issue19261.go
issue19275.go
issue19323.go cmd/compile: restore original assignment error messages 2021-09-23 19:41:41 +00:00
issue19359.go
issue19467.go
issue19482.go
issue19507.go
issue19515.go
issue19548.go
issue19555.go
issue19610.go
issue19632.go
issue19658.go
issue19667.go
issue19671.go
issue19678.go
issue19679.go
issue19696.go
issue19699.go
issue19699b.go
issue19705.go
issue19710.go
issue19743.go
issue19764.go
issue19783.go
issue19799.go
issue19880.go
issue19911.go
issue19947.go
issue19977.go
issue20014.go
issue20014.out
issue20029.go
issue20097.go
issue20145.go
issue20162.go
issue20174.go
issue20185.go
issue20227.go
issue20232.go
issue20233.go
issue20245.go
issue20250.go
issue20298.go
issue20333.go
issue20335.go
issue20415.go
issue20529.go
issue20530.go
issue20602.go
issue20682.go
issue20739.go
issue20749.go
issue20780.go
issue20780b.go
issue20789.go
issue20811.go
issue20812.go
issue20813.go
issue20923.go
issue21048.go
issue21120.go
issue21221.go
issue21253.go
issue21256.go
issue21273.go
issue21317.go cmd/compile: require -p flag 2022-03-09 21:31:58 +00:00
issue21576.go
issue21655.go
issue21687.go
issue21709.go
issue21770.go
issue21808.go
issue21808.out
issue21879.go
issue21879.out
issue21882.go
issue21887.go
issue21887.out
issue21934.go
issue21963.go
issue21979.go test: re-enable most go/tests that were disabled because of types2 differences 2022-01-11 02:26:58 +00:00
issue21988.go
issue22063.go
issue22076.go
issue22083.go
issue22164.go
issue22198.go
issue22200.go
issue22200b.go
issue22305.go
issue22326.go
issue22326.out
issue22327.go
issue22344.go
issue22351.go
issue22389.go
issue22429.go
issue22458.go
issue22581.go
issue22605.go
issue22660.go cmd/compile: require -p flag 2022-03-09 21:31:58 +00:00
issue22662.go
issue22662b.go cmd/compile: require -p flag 2022-03-09 21:31:58 +00:00
issue22683.go
issue22683.out
issue22781.go
issue22794.go
issue22822.go
issue22877.go
issue22881.go
issue22904.go
issue22921.go
issue22941.go
issue22962.go
issue23017.go
issue23093.go
issue23094.go
issue23116.go
issue23179.go
issue23188.go
issue23298.go
issue23305.go
issue23311.go
issue23414.go
issue23489.go
issue23504.go
issue23521.go
issue23522.go
issue23536.go cmd/compile: fix conv of slice of user-define byte type to string 2022-01-07 18:40:16 +00:00
issue23545.go
issue23546.go
issue23586.go
issue23587.go
issue23609.go
issue23664.go
issue23719.go
issue23732.go test: re-enable most go/tests that were disabled because of types2 differences 2022-01-11 02:26:58 +00:00
issue23734.go
issue23780.go
issue23781.go
issue23812.go
issue23823.go
issue23837.go
issue23912.go
issue24120.go
issue24159.go
issue24173.go
issue24187.go
issue24339.go
issue24419.go
issue24449.go
issue24470.go
issue24488.go
issue24491a.go
issue24491b.go
issue24503.go
issue24547.go
issue24651a.go
issue24651b.go
issue24693.go
issue24693.out
issue24760.go
issue24761.go
issue24763.go
issue24799.go
issue24801.go
issue24817.go
issue24937.go
issue24939.go
issue25006.go
issue25055.go
issue25101.go
issue25322.go
issue25322.out
issue25507.go
issue25516.go
issue25727.go
issue25741.go
issue25776.go
issue25897a.go
issue25897b.go
issue25958.go test: re-enable most go/tests that were disabled because of types2 differences 2022-01-11 02:26:58 +00:00
issue25966.go
issue25984.go
issue25993.go
issue26024.go
issue26043.go
issue26094.go
issue26097.go
issue26105.go
issue26116.go
issue26120.go
issue26153.go
issue26163.go
issue26248.go
issue26335.go
issue26340.go
issue26341.go
issue26407.go
issue26411.go cmd/compile: require -p flag 2022-03-09 21:31:58 +00:00
issue26416.go
issue26426.go
issue26438.go
issue26495.go
issue26616.go cmd/compile: restore original assignment error messages 2021-09-23 19:41:41 +00:00
issue26855.go
issue27143.go
issue27201.go
issue27232.go
issue27267.go
issue27278.go
issue27289.go
issue27356.go
issue27518a.go
issue27518b.go
issue27557.go
issue27595.go cmd/compile: restore original assignment error messages 2021-09-23 19:41:41 +00:00
issue27695.go
issue27695b.go
issue27695c.go
issue27718.go
issue27732a.go
issue27829.go
issue27836.go
issue27938.go
issue27961.go
issue28055.go
issue28058.go
issue28078.go
issue28079a.go
issue28079b.go test: re-enable most go/tests that were disabled because of types2 differences 2022-01-11 02:26:58 +00:00
issue28079c.go go/types, types2: use orig. compiler error message for a shift error 2022-01-19 20:54:49 +00:00
issue28085.go
issue28268.go test: re-enable most go/tests that were disabled because of types2 differences 2022-01-11 02:26:58 +00:00
issue28390.go
issue28390.out
issue28430.go
issue28445.go
issue28450.go
issue28601.go
issue28616.go
issue28688.go
issue28748.go
issue28797.go
issue28926.go
issue29013a.go
issue29013b.go
issue29190.go
issue29215.go
issue29218.go
issue29220.go
issue29264.go
issue29304.go
issue29312.go
issue29329.go
issue29350.go
issue29362.go
issue29362b.go
issue29389.go
issue29402.go
issue29504.go
issue29562.go
issue29610.go
issue29612.go
issue29735.go
issue29855.go
issue29870.go
issue29870b.go
issue29919.go
issue29943.go
issue30041.go
issue30061.go
issue30085.go
issue30087.go
issue30116.go
issue30116.out
issue30116u.go
issue30116u.out
issue30243.go
issue30430.go
issue30476.go
issue30566a.go
issue30566b.go
issue30606.go
issue30606b.go
issue30659.go
issue30679.go
issue30709.go
issue30709.out
issue30722.go
issue30862.go
issue30898.go
issue30907.go
issue30908.go cmd/compile: require -p flag 2022-03-09 21:31:58 +00:00
issue30956.go
issue30956.out
issue30977.go
issue31010.go
issue31053.go
issue31060.go
issue31252.go
issue31412a.go
issue31412b.go
issue31419.go
issue31546.go
issue31573.go
issue31636.go
issue31636.out
issue31637.go
issue31747.go
issue31777.go
issue31782.go
issue31782.out
issue31915.go
issue31959.go
issue31959.out
issue31987.go
issue32133.go
issue32175.go
issue32175.out
issue32187.go
issue32288.go
issue32347.go
issue32454.go
issue32477.go
issue32560.go
issue32595.go
issue32680.go
issue32680.out
issue32680b.go
issue32723.go
issue32778.go
issue32901.go
issue32922.go
issue32959.go
issue33013.go
issue33020.go
issue33020a.go
issue33062.go
issue33158.go
issue33219.go
issue33275_run.go
issue33275.go
issue33308.go
issue33355.go
issue33386.go
issue33438.go
issue33460.go test: re-enable most go/tests that were disabled because of types2 differences 2022-01-11 02:26:58 +00:00
issue33555.go
issue33724.go
issue33739.go
issue33866.go
issue33903.go
issue34123.go
issue34329.go
issue34395.go
issue34503.go
issue34520.go
issue34577.go
issue34723.go
issue34966.go
issue34968.go
issue35027.go
issue35073.go
issue35157.go
issue35291.go
issue35518.go
issue35576.go
issue35576.out
issue35586.go
issue35652.go
issue35739.go
issue36085.go
issue36259.go
issue36437.go
issue36516.go
issue36705.go
issue36723.go
issue37246.go
issue37513.go
issue37716.go
issue37753.go
issue37837.go
issue37975.go
issue38093.go
issue38117.go
issue38125.go
issue38356.go
issue38359.go
issue38496.go
issue38690.go
issue38698.go
issue38745.go
issue38746.go
issue38905.go
issue38916.go
issue39292.go
issue39459.go
issue39472.go
issue39505.go
issue39505b.go
issue39541.go
issue39651.go
issue40152.go
issue40252.go
issue40367.go
issue40629.go
issue40746.go
issue40917.go
issue40954.go
issue41239.go
issue41247.go cmd/compile: match Go 1.17 compiler error messages more closely 2021-11-12 23:07:01 +00:00
issue41440.go
issue41500.go
issue41575.go
issue41635.go
issue41680.go
issue41736.go
issue41780.go
issue41872.go
issue42032.go
issue42058a.go
issue42058b.go
issue42075.go
issue42076.go
issue42284.go
issue42401.go
issue42568.go
issue42587.go
issue42686.go
issue42703.go
issue42727.go
issue42753.go
issue42784.go
issue42790.go
issue42876.go
issue42944.go
issue43099.go
issue43111.go
issue43112.go
issue43164.go
issue43167.go
issue43292.go
issue43384.go
issue43428.go
issue43444.go
issue43444.out
issue43479.go
issue43480.go
issue43551.go
issue43570.go
issue43619.go
issue43633.go
issue43677.go
issue43701.go
issue43762.go
issue43835.go
issue43908.go
issue43962.go
issue44266.go
issue44325.go
issue44330.go
issue44335.go
issue44344.go
issue44355.go
issue44370.go
issue44378.go
issue44383.go
issue44432.go all: avoid use of cmd/compile -G flag in tests 2022-03-01 19:45:34 +00:00
issue44465.go
issue44732.go
issue44739.go
issue44823.go
issue44830.go
issue45045.go
issue45175.go
issue45242.go
issue45258.go
issue45323.go
issue45344.go
issue45359.go
issue45503.go
issue45606.go
issue45665.go
issue45693.go
issue45706.go
issue45743.go
issue45804.go
issue45851.go
issue45913.go
issue45947.go
issue45948.go
issue46234.go test: apply GO_TEST_TIMEOUT_SCALE scaling to test timeouts 2022-02-07 12:32:51 +00:00
issue46304.go
issue46386.go
issue46525.go
issue46556.go
issue46653.go
issue46720.go
issue46725.go
issue46749.go
issue46903.go
issue46907.go
issue46938.go
issue46957.go cmd/compile/internal/types2: report types for mismatched call and return statements 2021-11-24 20:57:46 +00:00
issue47068.go
issue47087.go
issue47131.go
issue47185.go
issue47201.go
issue47227.go
issue47317.go
issue47712.go
issue47771.go
issue47928.go
issue48026.go
issue48033.go
issue48088.go
issue48092.go
issue48097.go
issue48230.go cmd/compile: fix irgen reports wrong error message for misuse of //go:embed 2021-10-15 01:35:56 +00:00
issue48289.go
issue48301.go all: avoid use of cmd/compile -G flag in tests 2022-03-01 19:45:34 +00:00
issue48357.go
issue48459.go
issue48471.go all: avoid use of cmd/compile -G flag in tests 2022-03-01 19:45:34 +00:00
issue48473.go
issue48476.go
issue48536.go
issue48558.go cmd/compile: restore original assignment error messages 2021-09-23 19:41:41 +00:00
issue48784.go test/fixedbugs: fix issue48784.go to pass with -G=0 2021-10-07 18:58:33 +00:00
issue48834.go cmd/compile, go/types: restore 'too many return values' error for func with no results 2022-01-18 21:43:02 +00:00
issue48835.go cmd/compile/internal/types2: report types for mismatched call and return statements 2021-11-24 20:57:46 +00:00
issue48898.go runtime: do not add open defer entry above a started open defer entry 2021-10-29 23:15:00 +00:00
issue48898.out runtime: do not add open defer entry above a started open defer entry 2021-10-29 23:15:00 +00:00
issue48916.go cmd/compile: do not reuse dead value in expand_calls pass 2021-10-12 18:00:16 +00:00
issue49003.go cmd/compile: make for loops with range statements not terminating 2021-10-15 19:54:44 +00:00
issue49005a.go cmd/compile, types2: avoid confusing follow-on error in invalid type assertion 2021-10-17 04:27:13 +00:00
issue49005b.go cmd/compile, types2: better error message for invalid type assertion 2021-10-19 17:01:35 +00:00
issue49016.go cmd/compile: fix crawling of embeddable types during inline 2021-10-20 17:26:58 +00:00
issue49029.go cmd/compile: prevent compiling closures more than once 2021-10-23 06:36:16 +00:00
issue49094.go cmd/compile: only look for struct type when crawling inline body 2021-10-22 00:57:18 +00:00
issue49100.go cmd/compile: fix inlining of labeled for loops 2021-10-21 19:08:43 +00:00
issue49100.out cmd/compile: fix inlining of labeled for loops 2021-10-21 19:08:43 +00:00
issue49100b.go cmd/compile: allow inlining of ORANGE 2021-10-28 14:25:03 +00:00
issue49100b.out cmd/compile: allow inlining of ORANGE 2021-10-28 14:25:03 +00:00
issue49110.go reflect: skip duplicate check in StructOf when the name of a field is "_" 2021-10-27 21:35:48 +00:00
issue49122.go cmd/compile: fix fuse pass to do CFG surgery correctly 2021-10-23 20:23:35 +00:00
issue49143.go all: avoid use of cmd/compile -G flag in tests 2022-03-01 19:45:34 +00:00
issue49145.go cmd/compile: fix inlining labeled switch statements 2021-10-25 16:07:11 +00:00
issue49145.out cmd/compile: fix inlining labeled switch statements 2021-10-25 16:07:11 +00:00
issue49240.go cmd/compile: fix rewriting slice literal call argument 2021-11-02 16:19:45 +00:00
issue49249.go cmd/compile: fix missing update source type in storeArgOrLoad 2021-11-04 02:12:52 +00:00
issue49282.go cmd/compile: avoid adding LECall to the entry block when has opendefers 2021-11-06 13:10:06 +00:00
issue49368.go all: avoid use of cmd/compile -G flag in tests 2022-03-01 19:45:34 +00:00
issue49378.go cmd/compile: only update source type when processing struct/array 2021-11-05 16:35:00 +00:00
issue49512.go test: add test that was miscompiled by gccgo 2021-11-11 04:02:33 +00:00
issue49592.go cmd/compile/internal/types2: add a check for nil reason in assignableTo 2021-11-15 19:24:28 +00:00
issue49611.go cmd/compile: prevent irgen crashing for empty local declaration stmt 2021-11-16 15:38:59 +00:00
issue49619.go all: avoid use of cmd/compile -G flag in tests 2022-03-01 19:45:34 +00:00
issue49665.go all: avoid use of cmd/compile -G flag in tests 2022-03-01 19:45:34 +00:00
issue49665.out cmd/compile: handle any as alias like byte and rune 2021-11-19 22:35:28 +00:00
issue49767.go cmd/compile: report channel size errors correctly for -G=3 2021-12-02 20:49:56 +00:00
issue49814.go all: avoid use of cmd/compile -G flag in tests 2022-03-01 19:45:34 +00:00
issue50169.go cmd/compile: correct type identity comparison with "any" 2021-12-15 20:26:03 +00:00
issue50190.go cmd/compile: unique LinkString for renamed, embedded fields 2022-01-13 21:37:29 +00:00
issue50372.go all: avoid use of cmd/compile -G flag in tests 2022-03-01 19:45:34 +00:00
issue50439.go test: add test of incorrect gofrontend error 2022-01-06 19:21:12 +00:00
issue50671.go cmd/compile: don't elide extension for LoadReg to FP register on MIPS64 2022-01-19 15:45:58 +00:00
issue50854.go cmd/compile: remove incorrect arm,arm64 CMP->CMN transformations 2022-01-27 19:52:52 +00:00
issue51101.go cmd/compile: correct type of pointer difference on RISCV64 2022-02-14 23:08:44 +00:00
issue51401.go cmd/compile: use AutogeneratedPos for method value wrapper 2022-03-01 21:27:42 +00:00
issue51437.go go/types, types2: fix scoping for iteration variables declared by range clause 2022-03-03 16:02:44 +00:00
issue51531.go cmd/compile/internal/types2: more consistently print "check go.mod" if language version < 1.18 2022-03-08 16:50:57 +00:00