https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92642
--- Comment #2 from Jonny Grant <jg at jguk dot org> --- (In reply to Jonathan Wakely from comment #1) > (A) seems pointless in this case, it's right there in the caret diagnostic. > > The type size_t is irrelevant. > > IMO a better testcase would be: > > const int n = 41; > auto x = 1 << n; Sounds good. That 'n' might be passed in from somewhere, so worth including the number in the output if it is visible (compiler is aware of the value if it is const right?)