stdcxx-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Lemings (JIRA)" <j...@apache.org>
Subject [jira] Updated: (STDCXX-902) [gcc 4.0.1/Darwin 8 and 9] Compile error in tests/strings/21.cwctype.cpp
Date Tue, 29 Apr 2008 18:17:56 GMT

     [ https://issues.apache.org/jira/browse/STDCXX-902?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Eric Lemings updated STDCXX-902:
--------------------------------

    Description: 
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.

  was:
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.


> [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
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> 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.


Mime
View raw message