Mike Stump wrote:
> On Feb 11, 2009, at 11:00 AM, Douglas Gregor wrote:
>   
>> Ewwwwwwwww. Is there no other way?
>>     
>
> My proposed solution, let's built that file with clang.  :-)
>   
It will take the static analyzer to recognize this :-)

However, your fix may satisfy the compiler, but definitely not the
language lawyers. The iterator is singular, and any use whatsoever
(excluding only overwriting it) is undefined behavior.

I recommend assigning it NewParams->end() as a workaround.

Sebastian
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to