https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120250

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #4)
> That testcase is invalid, you can't use computed goto to branch to a
> function.  And if you meant to jump to the begin_sum local label instead of
> the function, you'd need __label__ begin_sum; before that so that when
> parsing &begin_sum it would know that begin_sum is a local label and not a
> function declaration.

Let me correctly this slightly.
`&begin_sum` does not correspond to taking the address of the label; even with
`__label__ begin_sum;` declaration. To take the address of a label you always
need to do `&&begin_sum`, note the 2 &s there.
I suspect that was how this accidently found was a missing & that caused the
ICE.

Reply via email to