8000 gccgo: spurious expected newline error · Issue #11528 · golang/go · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

gccgo: spurious expected newline error #11528

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

Closed
dvyukov opened this issue Jul 2, 2015 · 1 comment
Closed

gccgo: spurious expected newline error #11528

dvyukov opened this issue Jul 2, 2015 · 1 comment
Milestone

Comments

@dvyukov
Copy link
Member
dvyukov commented Jul 2, 2015

gcc rejects the following program:

package e
const(G=0/*
*/V)
go.go:3:3: error: expected ‘;’ or ‘)’ or newline

The spec says:

General comments start with the character sequence /* and continue through the character sequence */. A general comment containing one or more newlines acts like a newline, otherwise it acts like a space.

Both gc and go/types accept this program.
gcc version 6.0.0 2015070 (experimental) (GCC)

@gopherbot
Copy link
Contributor

CL https://golang.org/cl/13064 mentions this issue.

< 824B p class="ml-1 mb-2 mt-2" data-show-on-error hidden> Sorry, something went wrong.

vries pushed a commit to vries/gcc that referenced this issue Aug 12, 2015
    
    On comments, the specification says
    (http://golang.org/ref/spec#Comments): General comments start with the
    character sequence /* and continue through the character sequence */.
    A general comment containing one or more newlines acts like a newline,
    otherwise it acts like a space.
    
    Fixes golang/go#11528.
    
    Reviewed-on: https://go-review.googlesource.com/13064


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@226794 138bc75d-0d04-0410-961f-82ee72b054a4
@golang golang locked and limited conversation to collaborators Aug 10, 2016
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

4 participants
0