This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: "syntax error before `[' token" compilation error with gcc/g++ 3.0.4
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: "azerty qwerty" <azerty_qwerty_75 at hotmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: 02 Apr 2004 15:19:42 -0300
- Subject: Re: "syntax error before `[' token" compilation error with gcc/g++ 3.0.4
- Organization: Red Hat Global Engineering Services Compiler Team
- References: <BAY13-F64LeoOWGMhLP000394bb@hotmail.com>
On Apr 1, 2004, "azerty qwerty" <azerty_qwerty_75@hotmail.com> wrote:
> I tried to compile a c/c++ file with gcc/g++ 3.0.4 but got this syntax
> error.
My first guess would be that you have to replace occurrences of `<:'
with `< :' in that file. `<:' is an alternate spelling for `['.
--
Alexandre Oliva http://www.ic.unicamp.br/~oliva/
Red Hat Compiler Engineer aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist oliva@{lsd.ic.unicamp.br, gnu.org}