Looks like gcc8.1 think 'sel' can be empty after initialization. Avoid this by copying only the remaining entries.