https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61746

            Bug ID: 61746
           Summary: A line starting with /*// causes an error even if the
                    /* is closed on the next line
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: go
          Assignee: ian at airs dot com
          Reporter: erezh at il dot ibm.com
                CC: cmang at google dot com

Created attachment 33089
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33089&action=edit
The file to compile to produce the error

OS: Ubuntu 14.04 LTS, on either amd64 or ppc64le

gccgo version:
go version xgcc (Ubuntu 4.9-20140406-0ubuntu1) 4.9.0 20140405 (experimental)
[trunk revision 209157] linux/amd64 [or linux/ppc64]

How-to-produce:
Compile the attached file hello.go.Tthe compiler responds with an error as
following:
# gccgo -g -save-temps -o hello hello.go
hello.go:7:4: error: expected declaration
 /*// problem comment here
    ^
hello.go:8:1: error: expected declaration
 */
 ^
hello.go:12:1: error: expected declaration
 }
 ^

Expected-output:
There should be no error. When compiling with golang-go 1.2.2, there isn't an
error produced.

Reply via email to