This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/15885] [3.5 Regression] spurious or misleading va_start warning


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]