stdcxx-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Travis Vitek (JIRA)" <j...@apache.org>
Subject [jira] Commented: (STDCXX-784) [Sun C++ 5.3] error compiling braceexp.cpp
Date Mon, 24 Mar 2008 20:45:24 GMT

    [ https://issues.apache.org/jira/browse/STDCXX-784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12581666#action_12581666
] 

Travis Vitek commented on STDCXX-784:
-------------------------------------

Seems to be a compiler bug in the old SunPro compiler. Testcase follows

{noformat}
$ cat t.cpp && CC t.cpp

struct S
{
private:
   enum { size = 10 };

   struct A
   {
      char buf [size];
   };
};

int main ()
{
   return 0;
}

"t.cpp", line 10: jError: S::size is not accessible from S::A.
1 Error(s) detected.
{noformat}


> [Sun C++ 5.3] error compiling braceexp.cpp
> ------------------------------------------
>
>                 Key: STDCXX-784
>                 URL: https://issues.apache.org/jira/browse/STDCXX-784
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: Test Driver
>    Affects Versions: trunk
>            Reporter: Martin Sebor
>            Assignee: Travis Vitek
>            Priority: Blocker
>             Fix For: 4.2.1
>
>
> The test driver fails to build with Sun C++ 5.3 with the error below:
> {noformat}
> CC -c -D_RWSTDDEBUG    -I$(TOPDIR)/include -I$(BUILDDIR)/include -I$(TOPDIR)/tests/include
 -library=%none -g  -xarch=v9 +w   $(TOPDIR)/tests/src/braceexp.cpp
> "$(TOPDIR)/tests/src/braceexp.cpp", line 316: Error: _rw_brace_graph::_rw_brace_node
is not accessible from _rw_brace_graph::_rw_brace_node_buffer.
> "$(TOPDIR)/tests/src/braceexp.cpp", line 316: Error: _rw_brace_graph::size is not accessible
from _rw_brace_graph::_rw_brace_node_buffer.
> "$(TOPDIR)/tests/src/braceexp.cpp", line 350: Error: _rw_brace_graph::_rw_brace_node
is not accessible from _rw_brace_graph::_rw_recursion_context.
> "$(TOPDIR)/tests/src/braceexp.cpp", line 361: Error: _rw_brace_graph::_rw_brace_node
is not accessible from _rw_brace_graph::_rw_recursion_context.
> "$(TOPDIR)/tests/src/braceexp.cpp", line 1019: Warning: Conversion of 64 bit type value
to "int" causes truncation.
> 4 Error(s) and 1 Warning(s) detected.
> gmake: *** [braceexp.o] Error 4
> {noformat}

-- 
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