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
09b2de77
Commit
09b2de77
authored
May 21, 2010
by
Ken Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug 275
R=rsc CC=golang-dev
https://golang.org/cl/1198046
parent
9e497c36
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
cplx.c
src/cmd/gc/cplx.c
+10
-4
golden.out
test/golden.out
+0
-4
No files found.
src/cmd/gc/cplx.c
View file @
09b2de77
...
...
@@ -129,12 +129,18 @@ complexgen(Node *n, Node *res)
return
;
case
OREAL
:
subnode
(
&
n1
,
&
n2
,
n
->
left
);
case
OIMAG
:
nl
=
n
->
left
;
if
(
!
nl
->
addable
)
{
tempname
(
&
tmp
,
nl
->
type
);
complexgen
(
nl
,
&
tmp
);
nl
=
&
tmp
;
}
subnode
(
&
n1
,
&
n2
,
nl
);
if
(
n
->
op
==
OREAL
)
{
cgen
(
&
n1
,
res
);
return
;
case
OIMAG
:
subnode
(
&
n1
,
&
n2
,
n
->
left
);
}
cgen
(
&
n2
,
res
);
return
;
}
...
...
test/golden.out
View file @
09b2de77
...
...
@@ -180,7 +180,3 @@ BUG: bug260 failed
=========== bugs/bug274.go
BUG: errchk: command succeeded unexpectedly
=========== bugs/bug275.go
bugs/bug275.go:17: internal compiler error: subnode not addable
BUG should compile
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