Issue Details (XML | Word | Printable)

Key: STDCXX-784
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Travis Vitek
Reporter: Martin Sebor
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
C++ Standard Library

[Sun C++ 5.3] error compiling braceexp.cpp

Created: 18/Mar/08 03:53 PM   Updated: 06/May/08 12:49 AM
Return to search
Component/s: Test Driver
Affects Version/s: None
Fix Version/s: 4.2.1

Time Tracking:
Original Estimate: 2h
Original Estimate - 2h
Remaining Estimate: 0h
Time Spent - 2h
Time Spent: 2h
Time Spent - 2h

Severity: Compiler Error
Resolution Date: 26/Mar/08 12:01 AM


 Description  « Hide
The test driver fails to build with Sun C++ 5.3 with the error below:
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


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Martin Sebor added a comment - 18/Mar/08 03:57 PM
Target 4.2.1.

Martin Sebor added a comment - 20/Mar/08 05:23 PM
Travis, please take a look at this at your next opportunity.

Travis Vitek added a comment - 24/Mar/08 08:43 PM
Seems to be a compiler bug in the old SunPro compiler. Testcase follows
$ 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.

Travis Vitek added a comment - 24/Mar/08 08:55 PM
Committed to trunk in r640567

Travis Vitek added a comment - 26/Mar/08 12:01 AM
Fix verified on trunk.

Farid Zaripov added a comment - 17/Apr/08 11:11 AM

Travis Vitek added a comment - 06/May/08 12:49 AM
Closing resolved and verified 4.2.1 issue.