This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/15885] [3.5 Regression] spurious or misleading va_start warning
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Jun 2004 23:45:53 -0000
- Subject: [Bug middle-end/15885] [3.5 Regression] spurious or misleading va_start warning
- References: <20040608233841.15885.snyder@fnal.gov>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-06-08 23:45 -------
Confirmed.
Here is another example (but this time in C):
#include <stdarg.h>
void bar(int*);
void foo (int x, ...)
{
va_list ap;
va_start (ap, x);
bar(&x);
}
Note this causes wrong code.
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |critical
Status|UNCONFIRMED |NEW
Component|c++ |middle-end
Ever Confirmed| |1
Keywords| |diagnostic, wrong-code
Known to fail| |3.5.0
Known to work| |3.4.0
Last reconfirmed|0000-00-00 00:00:00 |2004-06-08 23:45:51
date| |
Summary|spurious or misleading |[3.5 Regression] spurious or
|va_start warning |misleading va_start warning
Target Milestone|--- |3.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15885