This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GCC 3.1 Issues


Fergus Henderson <fjh@cs.mu.OZ.AU> writes:

> 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; }) )

thanks, that fixes it for me...

Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]