https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97154 --- Comment #5 from David Binderman <dcb314 at hotmail dot com> --- Maybe something like spec[ spec.size() - 1] would be a good way to access the last element ?