[Bug c/107980] va_start incorrectly accepts an arbitrary number of arguments in C2x

2022-12-05 Thread aaron at aaronballman dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107980 --- Comment #2 from Aaron Ballman --- (In reply to Andrew Pinski from comment #1) > Hmm from https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3054.pdf : > ``` > 7.16.1.4 The va_start macro > void va_start(va_list ap, ...); > > > Any additiona

[Bug c/107980] va_start incorrectly accepts an arbitrary number of arguments in C2x

2022-12-05 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107980 --- Comment #1 from Andrew Pinski --- Hmm from https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3054.pdf : ``` 7.16.1.4 The va_start macro void va_start(va_list ap, ...); Any additional arguments are not used by the macro and will not be expa