In the code below, the label on the line with the "end if" throws an error:
if_label: if sig = '1' then sig_out <= '1'; end if if_label;
In the code below, the label on the line with the "end if" throws an error: