-
Notifications
You must be signed in to change notification settings - Fork 18.1k
cmd/compile: type..eq function not generated #24747
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
Comments
More observations. The following code compiles ok:
but the following one not
|
1.7 and 1.8 are ok. Not ok since 1.9.0. |
Since it's not clear from the report: to trigger the error, Anyway, I've bisected this to 87065a3 (cmd/go: don't generate DWARF in the compiler if the linker will discard it). cc @josharian |
This problem also exists for
So I think it should be fixed in 1.10.2. |
Sorry, I miss-typed But this problem is really not |
@dotaheor the error message for package main with no func main is entirely unrelated to this issue. I thought there was already a (very old) issue suggesting a better error message when this happens, but I can't find it. |
I believe that this is a duplicate of #23546. |
I was about to point out this being a duplicate too. The errors and programs are too similar for this to be a coincidence. |
Closing as a dup of #23546. |
What version of Go are you using (
go version
)?go version go1.10.1 linux/amd64
Does this issue reproduce with the latest release?
yes
What did you do?
What did you expect to see?
no errors
What did you see instead?
weird outputs, not like normal error messages.
btw, gccgo is ok to compile this program.
The text was updated successfully, but these errors were encountered: