https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92675
--- Comment #6 from Jonny Grant <jg at jguk dot org> --- Is the clearest way to write this as follows? unsigned int j = (unsigned int)-1; Likewise for the template example: U max = (U)-1; // good
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92675
--- Comment #6 from Jonny Grant <jg at jguk dot org> --- Is the clearest way to write this as follows? unsigned int j = (unsigned int)-1; Likewise for the template example: U max = (U)-1; // good