[gcc 4.0.1/Darwin 8 and 9] Compile error in tests/strings/21.cwctype.cpp
------------------------------------------------------------------------
Key: STDCXX-902
URL: https://issues.apache.org/jira/browse/STDCXX-902
Project: C++ Standard Library
Issue Type: Bug
Environment: Darwin host1 8.11.1 Darwin Kernel Version 8.11.1: Wed Oct
10 18:23:28 PDT 2007; root:xnu-792.25.20~1/RELEASE_I386 i386 i386
Darwin host2 9.2.2 Darwin Kernel Version 9.2.2: Tue Mar 4 21:17:34 PST 2008;
root:xnu-1228.4.31~1/RELEASE_I386 i386
Reporter: Eric Lemings
The tests/strings/21.cwctype.cpp source file fails to compile with these errors:
gcc -c -I/private/tmp/stdcxx/src/stdcxx-4.2.0/include/ansi
-I/private/tmp/stdcxx/src/stdcxx-4.2.0/include
-I/tmp/stdcxx/build/stdcxx-4.2.0/include
-I/private/tmp/stdcxx/src/stdcxx-4.2.0/tests/include -pedantic -nostdinc++ -O2
-W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long
-Wcast-align /private/tmp/stdcxx/src/stdcxx-4.2.0/tests/strings/21.cwctype.cpp
/private/tmp/stdcxx/src/stdcxx-4.2.0/tests/strings/21.cwctype.cpp:306: error:
template declaration of 'int std::__istype'
/private/tmp/stdcxx/src/stdcxx-4.2.0/tests/strings/21.cwctype.cpp:306: error:
expected primary-expression before ')' token
...
/private/tmp/stdcxx/src/stdcxx-4.2.0/tests/strings/21.cwctype.cpp:310: error:
template declaration of 'int std::__istype'
/private/tmp/stdcxx/src/stdcxx-4.2.0/tests/strings/21.cwctype.cpp:310: error:
expected primary-expression before ')' token
/private/tmp/stdcxx/src/stdcxx-4.2.0/tests/strings/21.cwctype.cpp: In function
'void test_behavior()':
/private/tmp/stdcxx/src/stdcxx-4.2.0/tests/strings/21.cwctype.cpp:791: error:
'__istype' is not a member of 'std'
...
/private/tmp/stdcxx/src/stdcxx-4.2.0/tests/strings/21.cwctype.cpp:863: error:
'__istype' is not a member of 'std'
make: *** [21.cwctype.o] Error 1
make: Target `all' not remade because of errors.
This is because the C/C++ preprocessor on Darwin distinguishes `#undef isdigit'
and `#undef isdigit(x)' as seperate directives with different semantics. Need
to add directives for the latter form.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.