https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116634
Jason Merrill <jason at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jason at gcc dot gnu.org --- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> --- (In reply to Horse Radi from comment #3) > This code has been working all the way back from gcc 9 till 13, only > breaking in gcc 14. Yes, but that was a bug, an array needs to be initialized with {}. But it seems reasonable to me for the (correct, but new) diagnostic to be a pedwarn rather than a hard error. > There is also a frozen library for constexpr strings > that uses similar methods. In a quick look at frozen I'm not seeing a similar pattern. > The compilation error shows a clear inconsistency in the compiler. The > lengths are correctly inferred, but the first string argument is skipped. That's a red herring; the argument is being passed normally, just the diagnostic context printing is getting it wrong. Marek, will you adjust the diagnostic for this case?