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 other/60336] va_start corrupts 6-th argument in case of empty type used before the format string


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60336

Mikael Pettersson <mikpelinux at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mikpelinux at gmail dot com

--- Comment #1 from Mikael Pettersson <mikpelinux at gmail dot com> ---
Created attachment 32212
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32212&action=edit
pre-processed test case, valid C and C++

The following is a pre-processed and simplified test case, tweaked to compile
as both C and C++.  As C it succeeds, as C++ it fails.  Tested with gcc/g++
4.8.2 on x86_64-linux.


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