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

Reply via email to