-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
cmd/compile: misplaced compiler directive for standard library #40852
Comments
They all look fine to me as well. I'm confused as to how you're getting these errors. Running all.bash works fine. What is The compiler and the cover tool can both generate that error text. Maybe it is the cover tool? That probably isn't run during all.bash. Does |
go-fuzz-build does a source to source translation and then builds. I thought it did the right thing with compiler directives, but it wouldn't surprise me to learn that there are bugs. Would you mind filing an issue at github.com/dvyukov/go-fuzz and closing this one? Thanks. |
You're right, I should've filed there first. I thought it was a Go 1.15 issue but sounds more like a Go fuzz issue. Thanks and sorry for the trouble. |
I too have just started having this issue when building |
This will be tracked in dvyukov/go-fuzz#294 |
I thought it was an issue with go/printer ? #40546 |
Hi @kirk-baird , would you provide a repro for the |
Sure, this fuzz target works for The compile error is
|
Thanks for that! I found that at least the go/printer issue exists in both version, but it's interesting why 1.14 didn't raise an error. I assume it's something related to compilation. go-fuzz-build generated file:
As for the go/printer issue, I don't think it's a bug 100%, and a workaround could be patched in go-fuzz. I will update what I've found at #40546 and dvyukov/go-fuzz#294. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Running
go-fuzz-build
for my fuzz tests.What did you expect to see?
I expected it to compile.
What did you see instead?
It seems the standard library is throwing errors with the new "misplaced compiler directive" error. In particular, the following errors were thrown, but to me these compiler directives seem to be used correctly?
The text was updated successfully, but these errors were encountered: