PR 30457 Please warn about va_start(ap, invalid)

Manuel López-Ibáñez lopezibanez@gmail.com
Fri Aug 8 17:26:00 GMT 2008


I wasn't able to come up with testcases for array types and function
types: they always decay into pointers.

Bootstrapped and regression tested on x86_64-unknown-linux-gnu with
--enable-languages=all.

OK for trunk?

2008-08-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

	PR 30457
	* builtins.c (fold_builtin_next_arg): Add warning about undefined
	behaviour.
testsuite/
	* gcc.dg/pr30457.c: New.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fix-pr30457.diff
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080808/61e11018/attachment.ksh>


More information about the Gcc-patches mailing list