Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
bf0c1903
Commit
bf0c1903
authored
Jan 23, 2012
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gc: avoid DOT in error messages
R=ken2 CC=golang-dev
https://golang.org/cl/5573047
parent
eb984f52
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/cmd/gc/subr.c
src/cmd/gc/subr.c
+1
-1
src/cmd/gc/typecheck.c
src/cmd/gc/typecheck.c
+2
-2
No files found.
src/cmd/gc/subr.c
View file @
bf0c1903
...
...
@@ -2156,7 +2156,7 @@ adddot(Node *n)
out:
if
(
c
>
1
)
yyerror
(
"ambiguous
DOT reference
%T.%S"
,
t
,
s
);
yyerror
(
"ambiguous
selector
%T.%S"
,
t
,
s
);
// rebuild elided dots
for
(
c
=
d
-
1
;
c
>=
0
;
c
--
)
...
...
src/cmd/gc/typecheck.c
View file @
bf0c1903
...
...
@@ -1564,7 +1564,7 @@ lookdot1(Sym *s, Type *t, Type *f, int dostrcmp)
if
(
f
->
sym
!=
s
)
continue
;
if
(
r
!=
T
)
{
yyerror
(
"ambiguous
DOT reference
%T.%S"
,
t
,
s
);
yyerror
(
"ambiguous
selector
%T.%S"
,
t
,
s
);
break
;
}
r
=
f
;
...
...
@@ -1656,7 +1656,7 @@ lookdot(Node *n, Type *t, int dostrcmp)
if
(
f1
!=
T
)
{
if
(
f2
!=
T
)
yyerror
(
"
ambiguous DOT reference %S a
s both field and method"
,
yyerror
(
"
%S i
s both field and method"
,
n
->
right
->
sym
);
if
(
f1
->
width
==
BADWIDTH
)
fatal
(
"lookdot badwidth %T %p"
,
f1
,
f1
);
...
...
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