summaryrefslogtreecommitdiff
path: root/test/fixedbugs
AgeCommit message (Collapse)AuthorFilesLines
2010-03-29gc: bug265Russ Cox1-0/+22
Fixes issue 700. R=ken2 CC=golang-dev http://codereview.appspot.com/839041
2010-03-24gc: tests omitted from the last bug fixRuss Cox2-0/+68
R=ken2 CC=golang-dev http://codereview.appspot.com/748041
2010-03-24delete all uses of panicln by rewriting them using panic or,Rob Pike17-177/+231
in the tests, println+panic. gofmt some tests too. R=rsc CC=golang-dev http://codereview.appspot.com/741041
2010-03-085g/6g/8g: fix double function call in sliceRuss Cox1-0/+23
Fixes issue 654. R=ken2 CC=golang-dev http://codereview.appspot.com/310041
2010-02-268g: make a[byte(x)] truncate xRuss Cox1-0/+16
R=ken2 CC=golang-dev http://codereview.appspot.com/223069
2010-02-18gc: recursive interface embeddingRuss Cox2-0/+40
Fixes issue 287. R=ken2 CC=golang-dev http://codereview.appspot.com/215048
2010-02-178g: respect ullman numbers in float comparisonRuss Cox1-0/+33
Fixes issue 602. R=ken2 CC=golang-dev http://codereview.appspot.com/212045
2010-02-16gc: undo attempt at fixing recursive interface embeddingRuss Cox3-32/+8
Fixes issue 582. Update issue 287 Status: Accepted Bug fix was too intrusive; undo and reopen issue. R=ken2 CC=golang-dev http://codereview.appspot.com/209044
2010-02-16gc: test & fix handling of very long string constantsRuss Cox1-0/+20070
R=ken2 CC=golang-dev http://codereview.appspot.com/207106
2010-02-12gc: diagnose invalid array boundsRuss Cox2-0/+31
Fixes issue 587. R=ken2 CC=golang-dev http://codereview.appspot.com/207085
2010-02-08Struct field ambiguity test.Ian Lance Taylor1-0/+28
gccgo gets this wrong at the moment. R=rsc CC=golang-dev http://codereview.appspot.com/205044
2010-02-05Match gccgo error message.Ian Lance Taylor1-1/+1
bug251.go:11:2: error: invalid recursive interface R=rsc CC=golang-dev http://codereview.appspot.com/204052
2010-02-04Match gccgo error messages.Ian Lance Taylor1-1/+1
bug121.go:12:3: error: name list not allowed in interface type bug121.go:16:2: error: expected signature or type name semi1.go:10:76: error: unexpected semicolon or newline before ‘{’ semi1.go:10:5: error: reference to undefined name ‘x’ semi1.go:10:8: error: reference to undefined name ‘y’ semi1.go:12:3: error: reference to undefined name ‘z’ semi2.go:10:79: error: unexpected semicolon or newline before ‘{’ semi2.go:10:9: error: reference to undefined name ‘x’ semi3.go:10:79: error: unexpected semicolon or newline before ‘{’ semi3.go:10:6: error: reference to undefined name ‘x’ semi3.go:10:9: error: reference to undefined name ‘y’ semi3.go:10:12: error: reference to undefined name ‘z’ semi3.go:12:3: error: reference to undefined name ‘z’ semi4.go:11:2: error: unexpected semicolon or newline before ‘{’ semi4.go:10:6: error: reference to undefined name ‘x’ semi4.go:12:3: error: reference to undefined name ‘z’ semi5.go:10:1: error: unexpected semicolon or newline before ‘{’ semi7.go:11:2: error: unexpected semicolon or newline before ‘else’ semi7.go:10:5: error: reference to undefined name ‘x’ slice.go:9:11: error: missing lower bound in slice expression slice.go:9:9: error: reference to undefined name ‘y’ slice.go:9:12: error: reference to undefined name ‘z’ R=rsc CC=golang-dev http://codereview.appspot.com/201061
2010-02-02bug252: make ... vs ...T crossing an error, at least for nowRuss Cox1-0/+15
R=r CC=golang-dev http://codereview.appspot.com/199066
2010-02-01gc: bug250, bug251 - recursive interface typesRuss Cox3-2/+42
Fixes issue 287. R=ken2 CC=golang-dev http://codereview.appspot.com/199057
2010-02-01Match gccgo error messages.Ian Lance Taylor1-2/+2
bug249.go:10:5: error: incompatible type in initialization bug249.go:26:5: error: incompatible type in initialization R=rsc CC=golang-dev http://codereview.appspot.com/198058
2010-02-01gc: bug246Russ Cox1-0/+22
R=ken2 CC=golang-dev http://codereview.appspot.com/198057
2010-02-01gc: bug242Russ Cox1-0/+121
R=ken2 CC=golang-dev http://codereview.appspot.com/198053
2010-02-01Fix for gccgo, which uses a package prefix.Ian Lance Taylor1-3/+3
R=rsc CC=golang-dev http://codereview.appspot.com/198046
2010-02-01Match gccgo error messages.Ian Lance Taylor1-12/+12
I have to admit that "cannot use type p.T as type p.T" is a bit weak. 8g gives a similar error ("cannot use v1 (type p.T) as type p.T in assignment"). bug3.go:37:5: error: incompatible type in initialization (incompatible type for method ‘M’ (different parameter types)) bug3.go:38:5: error: incompatible type in initialization (incompatible type for method ‘M’ (different parameter types)) bug3.go:43:5: error: incompatible type in initialization (incompatible type for method ‘M’ (different parameter types)) bug3.go:44:5: error: incompatible type in initialization (incompatible type for method ‘M’ (different parameter types)) bug3.go:49:5: error: incompatible types in assignment (cannot use type p.T as type p.T) bug3.go:50:5: error: incompatible types in assignment (cannot use type p.T as type p.T) bug3.go:55:5: error: incompatible types in assignment (incompatible type for method ‘M’ (different parameter types)) bug3.go:56:5: error: incompatible types in assignment (incompatible type for method ‘M’ (different parameter types)) bug3.go:57:6: error: incompatible types in assignment (incompatible type for method ‘M’ (different parameter types)) bug3.go:58:6: error: incompatible types in assignment (incompatible type for method ‘M’ (different parameter types)) bug3.go:59:5: error: incompatible types in assignment (incompatible type for method ‘M’ (different parameter types)) bug3.go:60:5: error: incompatible types in assignment (incompatible type for method ‘M’ (different parameter types)) bug3.go:61:6: error: incompatible types in assignment (incompatible type for method ‘M’ (different parameter types)) bug3.go:62:6: error: incompatible types in assignment (incompatible type for method ‘M’ (different parameter types)) R=rsc CC=golang-dev http://codereview.appspot.com/199044
2010-01-30Match gccgo error messages.Ian Lance Taylor1-7/+7
bug238.go:11:7: error: invalid constant type bug238.go:12:7: error: invalid constant type bug238.go:13:7: error: invalid constant type bug238.go:14:7: error: invalid constant type bug238.go:15:7: error: invalid constant type bug238.go:16:7: error: invalid constant type bug238.go:17:7: error: invalid constant type R=rsc CC=golang-dev http://codereview.appspot.com/194159
2010-01-30Match gccgo error message.Ian Lance Taylor1-1/+1
bug231.go:20:4: error: incompatible types in assignment (type has no methods) R=rsc CC=golang-dev http://codereview.appspot.com/194156
2010-01-29Recognize gccgo error messages.Ian Lance Taylor1-2/+2
bug228.go:11:25: error: invalid use of ‘...’ bug228.go:13:13: error: ‘...’ only permits one name bug228.go:15:20: error: ‘...’ must be last parameter bug228.go:17:7: error: expected type bug228.go:19:8: error: expected type R=rsc CC=golang-dev http://codereview.appspot.com/196077
2010-01-26gc: fix chan <- chan precedence.Russ Cox1-0/+39
also allow func() func(). R=ken2 CC=golang-dev http://codereview.appspot.com/194078
2010-01-25runtime, type switch: eliminate package global name space assumptionRuss Cox5-0/+191
bonus: type switch now detects multiple uses of identical interface types. bonus: interface types are now order-independent, following the spec. R=ken2 CC=golang-dev http://codereview.appspot.com/194053
2010-01-255l, 6l, 8l: accept only one object fileRuss Cox1-1/+1
(package main; others are pulled in automatically) R=ken2 CC=golang-dev http://codereview.appspot.com/194069
2010-01-24gc: bug247, reported by robRuss Cox1-0/+20
R=ken2 CC=golang-dev http://codereview.appspot.com/194051
2010-01-19gc: const debug bool = falseRuss Cox1-0/+3
R=ken2 CC=golang-dev http://codereview.appspot.com/186232
2010-01-18gc: bug245Russ Cox1-0/+16
Fixes issue 529. R=ken2 CC=golang-dev http://codereview.appspot.com/186215
2010-01-18gc: multiple return value at top-level invoked multiple timesRuss Cox1-0/+30
Fixes issue 402. R=ken2 CC=golang-dev http://codereview.appspot.com/186214
2010-01-18gc: bug243Russ Cox1-0/+28
Fixes issue 481. R=ken2 CC=golang-dev http://codereview.appspot.com/186213
2010-01-08gc: bug238Russ Cox1-0/+19
Fixes issue 471. R=ken2 CC=golang-dev http://codereview.appspot.com/181184
2010-01-07gc: bug219, bug239, bug240Russ Cox3-0/+79
Fixes issue 475. R=ken2 CC=golang-dev http://codereview.appspot.com/183157
2010-01-07gc: bug241Russ Cox1-0/+11
Fixes issue 495. R=ken2 CC=golang-dev http://codereview.appspot.com/183156
2009-12-23Add a test for issue 337.Ian Lance Taylor1-0/+25
gccgo currently miscompiles this test. R=rsc CC=golang-dev http://codereview.appspot.com/181050
2009-12-18More evaluation order tests, for global variables and switch.Ian Lance Taylor1-0/+53
gccgo currently fails this test. R=rsc CC=golang-dev http://codereview.appspot.com/179108
2009-12-17gc: fix compiler crashRuss Cox1-0/+17
R=ken2 CC=dho http://codereview.appspot.com/179097
2009-12-15runtime: return zero value in x, ok = <-c when ok == falseRuss Cox1-0/+20
Fixes issue 401. R=ken2 http://codereview.appspot.com/180053
2009-12-15gc: fix import name resolutionRuss Cox1-0/+10
Fixes issue 403. R=ken2 http://codereview.appspot.com/180052
2009-12-15gc: bug fixes.Russ Cox3-0/+67
* better error for lookup of unexported field * do not assign "ideal string" type to typed string literal * do not confuse methods and fields during interface check Fixes issue 410. Fixes issue 411. Fixes issue 426. R=ken2 http://codereview.appspot.com/179069
2009-12-15gc: allow ... in method listsRuss Cox1-0/+8
R=ken2 http://codereview.appspot.com/179070
2009-12-15gc: double-check usage of ...Russ Cox1-0/+19
Fixes issue 423. R=ken2 http://codereview.appspot.com/180045
2009-12-15gc: var x, ok = m[y]Russ Cox1-0/+34
Fixes issue 384. R=ken2 http://codereview.appspot.com/179061
2009-12-15Tweak test to work with both 6g and gccgo.Ian Lance Taylor1-3/+1
Pull the struct into a single line, since 6g reports the error on the last line of the struct definition and gccgo reports it on the first line. 6g: bug215.go:12: invalid recursive type A gccgo: bug215.go:12:6: error: invalid recursive type ‘A’ R=rsc http://codereview.appspot.com/180044
2009-12-10test/fixedbug: drop obsolete bug125, bug166Russ Cox2-28/+0
R=gri CC=golang-dev http://codereview.appspot.com/173044
2009-12-10make test/fixedbugs save for optional semisRobert Griesemer7-16/+12
R=rsc http://codereview.appspot.com/173045
2009-12-03gc: check for assignment to private fields during initializationRuss Cox3-0/+47
R=ken2 http://codereview.appspot.com/165055
2009-12-03gc: handle _ = <-c in select.Russ Cox2-0/+45
Fixes issue 238. R=ken2 http://codereview.appspot.com/163098
2009-12-03gc: recursive type errorRuss Cox1-0/+10
Fixes issue 245. R=ken2 http://codereview.appspot.com/164094
2009-12-03gc: better diagnosis of initialization loopsRuss Cox1-0/+21
Fixes bug 292. R=ken2 http://codereview.appspot.com/164093