Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
a65cc2a8
Commit
a65cc2a8
authored
Jun 18, 2008
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add a bug: method call doesn't compile
SVN=123403
parent
1926fef1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
7 deletions
+32
-7
bug048.go
test/bugs/bug048.go
+1
-1
bug054.go
test/bugs/bug054.go
+27
-0
golden.out
test/golden.out
+4
-6
No files found.
test/bugs/bug048.go
View file @
a65cc2a8
...
@@ -9,5 +9,5 @@ package main
...
@@ -9,5 +9,5 @@ package main
func
main
()
{
func
main
()
{
type
M
map
[
int
]
int
;
type
M
map
[
int
]
int
;
m0
:=
M
(
7
,
8
);
// parses OK
m0
:=
M
(
7
,
8
);
// parses OK
m1
:=
M
(
7
:
8
);
// BUG: syntax error
m1
:=
M
(
7
:
8
);
// BUG: syntax error
(grammar but not doc has [a:b]; what should we do?
}
}
test/bugs/bug054.go
0 → 100644
View file @
a65cc2a8
// $G $D/$F.go && $L $F.$A && ./$A.out
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package
main
type
Element
interface
{
}
type
Vector
struct
{
elem
*
[]
Element
;
}
func
(
v
*
Vector
)
At
(
i
int
)
Element
{
return
v
.
elem
[
i
];
}
type
TStruct
struct
{
name
string
;
fields
*
Vector
;
}
func
(
s
*
TStruct
)
field
()
{
t
:=
s
.
fields
.
At
(
0
);
}
test/golden.out
View file @
a65cc2a8
...
@@ -26,7 +26,7 @@ hello, world
...
@@ -26,7 +26,7 @@ hello, world
=========== ./literal.go
=========== ./literal.go
=========== ./nil.go
=========== ./nil.go
nil.go:30:
fatal error: naddr: const <T>{<i><int32>INT32;
}
nil.go:30:
illegal conversion of constant to <T>{
}
BUG: known to fail incorrectly
BUG: known to fail incorrectly
=========== ./sieve.go
=========== ./sieve.go
...
@@ -142,8 +142,6 @@ bugs/bug022.go:8: illegal types for operand: INDEXPTR
...
@@ -142,8 +142,6 @@ bugs/bug022.go:8: illegal types for operand: INDEXPTR
BUG: known to fail incorrectly
BUG: known to fail incorrectly
=========== bugs/bug023.go
=========== bugs/bug023.go
bugs/bug023.go:20: fatal error: naddr: const <Type>I{<TypeName>101({},{}){};}
BUG: known to fail incorrectly
=========== bugs/bug025.go
=========== bugs/bug025.go
bugs/bug025.go:7: fatal error: dumpexportvar: oname nil: Foo
bugs/bug025.go:7: fatal error: dumpexportvar: oname nil: Foo
...
@@ -217,7 +215,7 @@ bugs/bug044.go:23: error in shape across assignment
...
@@ -217,7 +215,7 @@ bugs/bug044.go:23: error in shape across assignment
BUG: compilation should succeed
BUG: compilation should succeed
=========== bugs/bug045.go
=========== bugs/bug045.go
bugs/bug045.go:13:
fatal error: naddr: const <T>{<i><int32>INT32;
}
bugs/bug045.go:13:
illegal conversion of constant to <T>{
}
BUG: known to fail incorrectly
BUG: known to fail incorrectly
=========== bugs/bug046.go
=========== bugs/bug046.go
...
@@ -242,8 +240,6 @@ bugs/bug048.go:8: syntax error
...
@@ -242,8 +240,6 @@ bugs/bug048.go:8: syntax error
BUG: known to fail incorrectly
BUG: known to fail incorrectly
=========== bugs/bug049.go
=========== bugs/bug049.go
bugs/bug049.go:6: fatal error: stringpool: not string
BUG: fatal error
=========== bugs/bug050.go
=========== bugs/bug050.go
bugs/bug050.go:3: package statement must be first
bugs/bug050.go:3: package statement must be first
...
@@ -271,6 +267,8 @@ BUG: incorrect code for division
...
@@ -271,6 +267,8 @@ BUG: incorrect code for division
bugs/bug053.go:6: syntax error
bugs/bug053.go:6: syntax error
BUG: len should not be a keyword
BUG: len should not be a keyword
=========== bugs/bug054.go
=========== fixedbugs/bug000.go
=========== fixedbugs/bug000.go
=========== fixedbugs/bug001.go
=========== fixedbugs/bug001.go
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment