add/assign problem, part 2.
Andrew Haley
aph@gcc.gnu.org
Mon Jan 1 11:42:00 GMT 2007
DCH writes:
> Hi David,
>
> I think you've got a coding error, not a compiler error. Make sure
> you're not using any optimizations (i.e. no -01,2 or 3 switches) as
> these switches can often "magnify" errors such as the one you're
> getting. Obviously it's not a solution to just leave optimization
> off, but it might help you track down where the problem is.
>
> I haven't actually compiled up your program, but immediately alarm
> bells are ringing when I see things like
>
> a = *(vec + i)
It's just a nonstandard way to write vec[i]. I mean, it's weird, but
it's not actually wrong. :-)
Andrew.
More information about the Gcc-help
mailing list