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

Martin Sebor updated STDCXX-787:
--------------------------------

    Fix Version/s: 4.2.2
         Assignee: Martin Sebor

Scheduled for 4.2.2 and assigned to self.

> [EDG eccp 3.9] error #1075 in random_shuffle.cpp example
> --------------------------------------------------------
>
>                 Key: STDCXX-787
>                 URL: https://issues.apache.org/jira/browse/STDCXX-787
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: Examples
>    Affects Versions: 4.2.1
>         Environment: EDG eccp 3.9/Linux
>            Reporter: Martin Sebor
>            Assignee: Martin Sebor
>            Priority: Minor
>             Fix For: 4.2.2
>
>         Attachments: random_shuffle.log
>
>   Original Estimate: 4h
>  Remaining Estimate: 4h
>
> The example program 
> [random_shuffle.cpp|http://svn.apache.org/repos/asf/stdcxx/trunk/examples/manual/random_shuffle.cpp]
>  fails to compile with EDG eccp 3.9 with the following error (and many more 
> like it):
> {noformat}
> eccp -c -I/home/sebor/stdcxx/include/ansi -D_RWSTDDEBUG    
> -I/home/sebor/stdcxx/include -I/build/sebor/stdcxx-eccp-3.9-11s/include 
> -I/home/sebor/stdcxx/examples/include  -A -x 
> --template_directory=/build/sebor/stdcxx-eccp-3.9-11s/lib -g   
> --display_error_number --remarks --diag_suppress 
> 193,236,340,401,261,479,487,678,679,815   
> /home/sebor/stdcxx/examples/manual/random_shuffle.cpp
> eccp random_shuffle.o -o random_shuffle 
> --template_directory=/build/sebor/stdcxx-eccp-3.9-11s/lib    
> -L/build/sebor/stdcxx-eccp-3.9-11s/lib  -lstd11s  -lm 
> C++ prelinker: 
> std::random_shuffle<__rw::__rw_debug_iter<std::basic_string<double, 
> std::char_traits<double>, std::allocator<double>>, double *, double *>, 
> unsigned int (*)(unsigned int)>(T1, T1, T2 &) assigned to file 
> random_shuffle.o
> C++ prelinker: std::basic_string<double, std::char_traits<double>, 
> std::allocator<double>>::basic_string(const double *, const double *, const 
> std::allocator<double>&) assigned to file random_shuffle.o
> C++ prelinker: std::basic_string<double, std::char_traits<double>, 
> std::allocator<double>>::_C_null_ref assigned to file random_shuffle.o
> C++ prelinker: std::basic_string<double, std::char_traits<double>, 
> std::allocator<double>>::_C_get_rep(unsigned int, unsigned int) assigned to 
> file random_shuffle.o
> C++ prelinker: executing: /usr/local/eccp-3.9/bin/eccp -c 
> -I/home/sebor/stdcxx/include/ansi -D_RWSTDDEBUG -I/home/sebor/stdcxx/include 
> -I/build/sebor/stdcxx-eccp-3.9-11s/include 
> -I/home/sebor/stdcxx/examples/include -A -x 
> --template_directory=/build/sebor/stdcxx-eccp-3.9-11s/lib -g 
> --display_error_number --remarks --diag_suppress 
> 193,236,340,401,261,479,487,678,679,815 
> /home/sebor/stdcxx/examples/manual/random_shuffle.cpp
> "/home/sebor/stdcxx/include/string.cc", line 125: error #1075: function
>           "std::basic_string<_CharT, _Traits, _Allocator>::basic_string(const
>           std::basic_string<_CharT, _Traits, _Allocator> &,
>           _Allocator::size_type, _Allocator::size_type, const _Allocator &)"
>           already defined during compilation of
>           "/home/sebor/stdcxx/src/ti_string.cpp"
>   basic_string (const basic_string &__s, size_type __pos, size_type __n,
>   ^
>           detected during compilation of secondary translation unit
>                     "/home/sebor/stdcxx/src/export.cpp"
> ...
> "/home/sebor/stdcxx/include/string.cc", line 79: error #1075: function
>           "std::basic_string<_CharT, _Traits, _Allocator>::_C_get_rep" already
>           defined during compilation of "/home/sebor/stdcxx/src/ti_string.cpp"
>   _C_get_rep (size_type __cap, size_type __len)
>   ^
>           detected during compilation of secondary translation unit
>                     "/home/sebor/stdcxx/src/export.cpp"
> 22 errors detected in the compilation of 
> "/home/sebor/stdcxx/examples/manual/random_shuffle.cpp".
> gcc: random_shuffle.o: No such file or directory
> make: *** [random_shuffle] Error 2
> {noformat}

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

Reply via email to