va_copy in c++0x-mode

Magnus Fromreide magfr@lysator.liu.se
Wed Nov 5 06:49:00 GMT 2008


Hello!

The latest C++ draft standard (n2789), section 18.9, says that va_copy
is declared in c++0x but the g++ headers are not yet fixed up to do
that. I think there is a need for a check for __GXX_EXPERIMENTAL_CXX0X__
in gcc/ginclude/stdarg.h

How to test:

g++ -c -std=c++0x test.C

fails to compile.

With the patch the compilation succeds.

/MF
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch
Type: text/x-patch
Size: 600 bytes
Desc: Patch to enable va_copy in c++0x
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20081105/19a1a119/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.C
Type: text/x-c++src
Size: 94 bytes
Desc: 
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20081105/19a1a119/attachment-0001.bin>


More information about the Libstdc++ mailing list