This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/36799] New: error on va_copy in -std=c++0x mode
- From: "sebor at roguewave dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Jul 2008 22:57:27 -0000
- Subject: [Bug c++/36799] New: error on va_copy in -std=c++0x mode
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The program below compiles successfully in gnu++0x mode but fails to compile
in c++0x mode. Since va_copy() is in C++ 0x I expect the program to compile
regardless.
$ cat t.cpp && g++ t.cpp -std=c++0x
#include <cstdarg>
int main ()
{
va_list x;
va_list y;
va_copy (y, x);
}
t.cpp: In function ?int main()?:
t.cpp:7: error: ?va_copy? was not declared in this scope
--
Summary: error on va_copy in -std=c++0x mode
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: sebor at roguewave dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36799