[gcc 4.3 -std=c++0x] error on va_copy in test driver
----------------------------------------------------
Key: STDCXX-990
URL: https://issues.apache.org/jira/browse/STDCXX-990
Project: C++ Standard Library
Issue Type: Bug
Components: Test Driver
Affects Versions: 4.3
Environment: gcc 4.3.0 with -std=c++0x
Reporter: Martin Sebor
Assignee: Martin Sebor
Priority: Blocker
Fix For: 4.3
Test test driver file
[char.cpp|http://svn.apache.org/viewvc/stdcxx/branches/4.3.x/tests/src/char.cpp?revision=664271&view=markup]
fails to compile with gcc 4.3 with the
[-std=c++0x|http://gcc.gnu.org/onlinedocs/gcc-4.3.0/gcc/C-Dialect-Options.html#index-std-99]
option:
{noformat}
$ make -C../rwtest CXXOPTS="-Wno-parentheses"
make: Entering directory `/build/sebor/stdcxx-4.3.x-gcc-4.3.0-15D/rwtest'
gcc -c -I/home/sebor/stdcxx-4.3.x/include/ansi -D_RWSTDDEBUG -pthread
-I/home/sebor/stdcxx-4.3.x/include
-I/build/sebor/stdcxx-4.3.x-gcc-4.3.0-15D/include
-I/home/sebor/stdcxx-4.3.x/tests/include -pedantic -nostdinc++ -g -std=c++0x
-W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long
-Wcast-align -Wno-parentheses /home/sebor/stdcxx-4.3.x/tests/src/char.cpp
/home/sebor/stdcxx-4.3.x/tests/src/char.cpp: In static member function 'static
size_t UserTraits<UserChar>::length(const UserChar*)':
/home/sebor/stdcxx-4.3.x/tests/src/char.cpp:369: warning: suggest a space
before ';' or explicit braces around empty body in 'for' statement
/home/sebor/stdcxx-4.3.x/tests/src/char.cpp: In static member function 'static
UserChar* UserTraits<UserChar>::assign(UserChar*, size_t, UserChar)':
/home/sebor/stdcxx-4.3.x/tests/src/char.cpp:436: warning: suggest a space
before ';' or explicit braces around empty body in 'for' statement
/home/sebor/stdcxx-4.3.x/tests/src/char.cpp: In function 'char*
rw_narrow(char*, const wchar_t*, size_t)':
/home/sebor/stdcxx-4.3.x/tests/src/char.cpp:900: warning: suggest a space
before ';' or explicit braces around empty body in 'for' statement
/home/sebor/stdcxx-4.3.x/tests/src/char.cpp: In function 'size_t rw_match(const
char*, const wchar_t*, size_t)':
/home/sebor/stdcxx-4.3.x/tests/src/char.cpp:938: warning: suggest a space
before ';' or explicit braces around empty body in 'for' statement
/home/sebor/stdcxx-4.3.x/tests/src/char.cpp: In function 'char*
rw_narrow(char*, const UserChar*, size_t)':
/home/sebor/stdcxx-4.3.x/tests/src/char.cpp:1049: warning: suggest a space
before ';' or explicit braces around empty body in 'for' statement
/home/sebor/stdcxx-4.3.x/tests/src/char.cpp: In function 'size_t rw_match(const
char*, const UserChar*, size_t)':
/home/sebor/stdcxx-4.3.x/tests/src/char.cpp:1087: warning: suggest a space
before ';' or explicit braces around empty body in 'for' statement
/home/sebor/stdcxx-4.3.x/tests/src/char.cpp: In function 'int
_rw_fmtstringv(char**, size_t*, const char*, __va_list_tag*)':
/home/sebor/stdcxx-4.3.x/tests/src/char.cpp:1197: error: 'va_copy' was not
declared in this scope
/home/sebor/stdcxx-4.3.x/tests/src/char.cpp:1224: error: 'va_copy' was not
declared in this scope
/home/sebor/stdcxx-4.3.x/tests/src/char.cpp:1245: error: 'va_copy' was not
declared in this scope
/home/sebor/stdcxx-4.3.x/tests/src/char.cpp:1251: error: 'va_copy' was not
declared in this scope
make: *** [char.o] Error 1
make: Leaving directory `/build/sebor/stdcxx-4.3.x-gcc-4.3.0-15D/rwtest'
{noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.