You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stdcxx.apache.org by "Martin Sebor (JIRA)" <ji...@apache.org> on 2007/10/12 00:43:50 UTC

[jira] Commented: (STDCXX-586) [eccp/Linux] error #29 on #if _RWSTD_INSTANTIATE

    [ https://issues.apache.org/jira/browse/STDCXX-586?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12534179 ] 

Martin Sebor commented on STDCXX-586:
-------------------------------------

The errors are caused by the WCHAR_T.cpp test failing due to the use of long long in the <wchar.h> Linux header, and the compiler operating in strict C++ 2003 mode (-AA). The config test unconditionally #includes <wchar.h> just in case wchar_t is a typedef. It should #include the header only when wchar_t is known not to be a fundamental type, i.e., when _RWSTD_NO_NATIVE_WCHAR_T is #defined in the generated config header.

> [eccp/Linux] error #29 on #if _RWSTD_INSTANTIATE
> ------------------------------------------------
>
>                 Key: STDCXX-586
>                 URL: https://issues.apache.org/jira/browse/STDCXX-586
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: trunk
>         Environment: EDG eccp 3.10 with gcc 3.3.3 on SUSE LINUX Enterprise Server 9 (x86_64).
>            Reporter: Martin Sebor
>            Assignee: Martin Sebor
>             Fix For: 4.2
>
>
> The library fails to build with EDG eccp 3.10 and 3.9 (and likely prior versions as well) with the errors below, repeated in many translation units:
> generating dependencies for $(TOPDIR)/src/ti_wtime_put.cpp
> eccp -M -I$(TOPDIR)/include/ansi -D_RWSTDDEBUG    -I$(TOPDIR)/include -I$(BUILDDIR)/include  -A -x --template_directory=$(BUILDDIR)/lib -g   --display_error_number --remarks --diag_suppress 193,236,340,401,261,479,487,678,679,815   $(TOPDIR)/src/ti_wtime_put.cpp
> "$(TOPDIR)/include/string", line 1601: error #29: 
>           expected an expression
>   #if _RWSTD_INSTANTIATE (_BASIC_STRING, _WCHAR_T)
>       ^
> "$(TOPDIR)/include/streambuf", line 534: error #29: 
>           expected an expression
>   #if _RWSTD_INSTANTIATE (_BASIC_STREAMBUF, _WCHAR_T)
>       ^
> "$(TOPDIR)/include/loc/_time_put.h", line 126: error #29: 
>           expected an expression
>   #if _RWSTD_INSTANTIATE (_TIME_PUT, _WCHAR_T)
>       ^
> 3 errors detected in the compilation of "$(TOPDIR)/src/ti_wtime_put.cpp".

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.