Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compiler error when applying a method to a constant #495

Closed
petar opened this issue Jan 5, 2010 · 2 comments
Closed

compiler error when applying a method to a constant #495

petar opened this issue Jan 5, 2010 · 2 comments

Comments

@petar
Copy link
Contributor

petar commented Jan 5, 2010

What steps will reproduce the problem?
The (non)program:

const c = 3
c.String()

What is the expected output? What do you see instead?

See compiler error:
<epoch>: fatal error: dowidth: unknown type: ideal

What is your $GOOS?  $GOARCH?
darwin, amd64

Which revision are you using?  (hg identify)
7c524d50a210 tip

Please provide any additional information below.
The compiler simply "seg-faults" without line number or any other
meaningful report.
@rsc
Copy link
Contributor

rsc commented Jan 6, 2010

Comment 1:

Labels changed: added compilerbug.

Owner changed to r...@golang.org.

Status changed to Accepted.

@rsc
Copy link
Contributor

rsc commented Jan 8, 2010

Comment 2:

This issue was closed by revision c6f4d68.

Status changed to Fixed.

Merged into issue #-.

@petar petar assigned rsc Jan 8, 2010
@golang golang locked and limited conversation to collaborators Jun 24, 2016
@rsc rsc removed their assignment Jun 22, 2022
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants