This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: GCC 3.1 Issues
On 13-Mar-2002, Andreas Jaeger <aj@suse.de> wrote:
> Richard Henderson <rth@redhat.com> writes:
>
> > On Tue, Mar 12, 2002 at 08:05:40PM +0100, Andreas Jaeger wrote:
> >> How can I add this as input, it let's say I want to access ten bytes
> >> of a string?
> >
> > "m"( ({ struct { char x[10]; } *p = (void *)ptr ; *p }) )
>
> This does not work for me:
...
> Both gcc 2.95.3 and gcc 3.1 complain about:
> str.c:21: parse error before '}' token
It needs a semicolon between "*p" and "})":
"m"( ({ struct { char x[10]; } *p = (void *)ptr ; *p; }) )
^
--
Fergus Henderson <fjh@cs.mu.oz.au> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.