|
View:
New views
8 Messages
—
Rating Filter:
Alert me
|
|
|
Created: (STDCXX-1035) Issue with string::find(const string& str, size_type pos=0)Issue with string::find(const string& str, size_type pos=0)
----------------------------------------------------------- Key: STDCXX-1035 URL: https://issues.apache.org/jira/browse/STDCXX-1035 Project: C++ Standard Library Issue Type: Bug Components: 21. Strings Affects Versions: 4.2.1 Environment: OS: Solaris 2.10 Compiler: Sun Studio 12 Reporter: Brian Nesbitt I recently encountered a problem with stdcxx demonstrated by the following example: {noformat} #include <string> int main() { std::string s = ".google.com"; std::string s1 = "www.google.google.com"; std::string::size_type pos = s1.find(s); if (pos != std::string::npos) { return 0; } else { return 1; } } {noformat} The code above was compiled using the sun studio 12 compiler: {noformat} CC -library=%none -I/spare/include/stdcxx -L/spare/lib -lstd12d -mt -lpthread google.cpp {noformat} With the stdcxx 4.2.1 library, the return code is 1 indicating that find failed. However the return code is 0 when using sun studio with the Cstd or STLPort4 libraries. Compiling with g++ 4.1 on Linux also returns 0 indicating that find was successful. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
|
|
Commented: (STDCXX-1035) Issue with string::find(const string& str, size_type pos=0)[ https://issues.apache.org/jira/browse/STDCXX-1035?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12705993#action_12705993 ] Brian Nesbitt commented on STDCXX-1035: --------------------------------------- I should also mention that using 'find_first_of' works in this example, as does rfind. > Issue with string::find(const string& str, size_type pos=0) > ----------------------------------------------------------- > > Key: STDCXX-1035 > URL: https://issues.apache.org/jira/browse/STDCXX-1035 > Project: C++ Standard Library > Issue Type: Bug > Components: 21. Strings > Affects Versions: 4.2.1 > Environment: OS: Solaris 2.10 > Compiler: Sun Studio 12 > Reporter: Brian Nesbitt > > I recently encountered a problem with stdcxx demonstrated by the following example: > {noformat} > #include <string> > int main() > { > std::string s = ".google.com"; > std::string s1 = "www.google.google.com"; > std::string::size_type pos = s1.find(s); > if (pos != std::string::npos) > { > return 0; > } > else > { > return 1; > } > } > {noformat} > The code above was compiled using the sun studio 12 compiler: > {noformat} > CC -library=%none -I/spare/include/stdcxx -L/spare/lib -lstd12d -mt -lpthread google.cpp > {noformat} > With the stdcxx 4.2.1 library, the return code is 1 indicating that find failed. However the return code is 0 when using sun studio with the Cstd or STLPort4 libraries. Compiling with g++ 4.1 on Linux also returns 0 indicating that find was successful. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
|
|
Assigned: (STDCXX-1035) Issue with string::find(const string& str, size_type pos=0)[ https://issues.apache.org/jira/browse/STDCXX-1035?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Farid Zaripov reassigned STDCXX-1035: ------------------------------------- Assignee: Farid Zaripov > Issue with string::find(const string& str, size_type pos=0) > ----------------------------------------------------------- > > Key: STDCXX-1035 > URL: https://issues.apache.org/jira/browse/STDCXX-1035 > Project: C++ Standard Library > Issue Type: Bug > Components: 21. Strings > Affects Versions: 4.2.1 > Environment: OS: Solaris 2.10 > Compiler: Sun Studio 12 > Reporter: Brian Nesbitt > Assignee: Farid Zaripov > > I recently encountered a problem with stdcxx demonstrated by the following example: > {noformat} > #include <string> > int main() > { > std::string s = ".google.com"; > std::string s1 = "www.google.google.com"; > std::string::size_type pos = s1.find(s); > if (pos != std::string::npos) > { > return 0; > } > else > { > return 1; > } > } > {noformat} > The code above was compiled using the sun studio 12 compiler: > {noformat} > CC -library=%none -I/spare/include/stdcxx -L/spare/lib -lstd12d -mt -lpthread google.cpp > {noformat} > With the stdcxx 4.2.1 library, the return code is 1 indicating that find failed. However the return code is 0 when using sun studio with the Cstd or STLPort4 libraries. Compiling with g++ 4.1 on Linux also returns 0 indicating that find was successful. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
|
|
Commented: (STDCXX-1035) Issue with string::find(const string& str, size_type pos=0)[ https://issues.apache.org/jira/browse/STDCXX-1035?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12706040#action_12706040 ] Farid Zaripov commented on STDCXX-1035: --------------------------------------- Regression test added thus: http://svn.apache.org/viewvc?view=rev&revision=771735 > Issue with string::find(const string& str, size_type pos=0) > ----------------------------------------------------------- > > Key: STDCXX-1035 > URL: https://issues.apache.org/jira/browse/STDCXX-1035 > Project: C++ Standard Library > Issue Type: Bug > Components: 21. Strings > Affects Versions: 4.2.1 > Environment: OS: Solaris 2.10 > Compiler: Sun Studio 12 > Reporter: Brian Nesbitt > Assignee: Farid Zaripov > > I recently encountered a problem with stdcxx demonstrated by the following example: > {noformat} > #include <string> > int main() > { > std::string s = ".google.com"; > std::string s1 = "www.google.google.com"; > std::string::size_type pos = s1.find(s); > if (pos != std::string::npos) > { > return 0; > } > else > { > return 1; > } > } > {noformat} > The code above was compiled using the sun studio 12 compiler: > {noformat} > CC -library=%none -I/spare/include/stdcxx -L/spare/lib -lstd12d -mt -lpthread google.cpp > {noformat} > With the stdcxx 4.2.1 library, the return code is 1 indicating that find failed. However the return code is 0 when using sun studio with the Cstd or STLPort4 libraries. Compiling with g++ 4.1 on Linux also returns 0 indicating that find was successful. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
|
|
Resolved: (STDCXX-1035) Issue with string::find(const string& str, size_type pos=0)[ https://issues.apache.org/jira/browse/STDCXX-1035?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Farid Zaripov resolved STDCXX-1035. ----------------------------------- Resolution: Fixed Fix Version/s: 4.2.2 Fixed in 4.2.x branch thus: http://svn.apache.org/viewvc?view=rev&revision=771743 > Issue with string::find(const string& str, size_type pos=0) > ----------------------------------------------------------- > > Key: STDCXX-1035 > URL: https://issues.apache.org/jira/browse/STDCXX-1035 > Project: C++ Standard Library > Issue Type: Bug > Components: 21. Strings > Affects Versions: 4.2.1 > Environment: OS: Solaris 2.10 > Compiler: Sun Studio 12 > Reporter: Brian Nesbitt > Assignee: Farid Zaripov > Fix For: 4.2.2 > > > I recently encountered a problem with stdcxx demonstrated by the following example: > {noformat} > #include <string> > int main() > { > std::string s = ".google.com"; > std::string s1 = "www.google.google.com"; > std::string::size_type pos = s1.find(s); > if (pos != std::string::npos) > { > return 0; > } > else > { > return 1; > } > } > {noformat} > The code above was compiled using the sun studio 12 compiler: > {noformat} > CC -library=%none -I/spare/include/stdcxx -L/spare/lib -lstd12d -mt -lpthread google.cpp > {noformat} > With the stdcxx 4.2.1 library, the return code is 1 indicating that find failed. However the return code is 0 when using sun studio with the Cstd or STLPort4 libraries. Compiling with g++ 4.1 on Linux also returns 0 indicating that find was successful. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
|
|
Updated: (STDCXX-1035) Issue with string::find(const string& str, size_type pos=0)[ https://issues.apache.org/jira/browse/STDCXX-1035?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Farid Zaripov updated STDCXX-1035: ---------------------------------- Regression: [Regression] Environment: All (was: OS: Solaris 2.10 Compiler: Sun Studio 12) Affects Version/s: 4.2.0 This bug should appear on all environments. 4.2.0 version is affected also. It seems, that the bug was introduced in http://svn.apache.org/viewvc?view=rev&revision=399499 revision. Making issue as regression. > Issue with string::find(const string& str, size_type pos=0) > ----------------------------------------------------------- > > Key: STDCXX-1035 > URL: https://issues.apache.org/jira/browse/STDCXX-1035 > Project: C++ Standard Library > Issue Type: Bug > Components: 21. Strings > Affects Versions: 4.2.0, 4.2.1 > Environment: All > Reporter: Brian Nesbitt > Assignee: Farid Zaripov > Fix For: 4.2.2 > > > I recently encountered a problem with stdcxx demonstrated by the following example: > {noformat} > #include <string> > int main() > { > std::string s = ".google.com"; > std::string s1 = "www.google.google.com"; > std::string::size_type pos = s1.find(s); > if (pos != std::string::npos) > { > return 0; > } > else > { > return 1; > } > } > {noformat} > The code above was compiled using the sun studio 12 compiler: > {noformat} > CC -library=%none -I/spare/include/stdcxx -L/spare/lib -lstd12d -mt -lpthread google.cpp > {noformat} > With the stdcxx 4.2.1 library, the return code is 1 indicating that find failed. However the return code is 0 when using sun studio with the Cstd or STLPort4 libraries. Compiling with g++ 4.1 on Linux also returns 0 indicating that find was successful. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
|
|
Updated: (STDCXX-1035) Issue with string::find(const string& str, size_type pos=0)[ https://issues.apache.org/jira/browse/STDCXX-1035?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Farid Zaripov updated STDCXX-1035: ---------------------------------- Affects Version/s: 4.1.4 4.1.4 is also affected > Issue with string::find(const string& str, size_type pos=0) > ----------------------------------------------------------- > > Key: STDCXX-1035 > URL: https://issues.apache.org/jira/browse/STDCXX-1035 > Project: C++ Standard Library > Issue Type: Bug > Components: 21. Strings > Affects Versions: 4.1.4, 4.2.0, 4.2.1 > Environment: All > Reporter: Brian Nesbitt > Assignee: Farid Zaripov > Fix For: 4.2.2 > > > I recently encountered a problem with stdcxx demonstrated by the following example: > {noformat} > #include <string> > int main() > { > std::string s = ".google.com"; > std::string s1 = "www.google.google.com"; > std::string::size_type pos = s1.find(s); > if (pos != std::string::npos) > { > return 0; > } > else > { > return 1; > } > } > {noformat} > The code above was compiled using the sun studio 12 compiler: > {noformat} > CC -library=%none -I/spare/include/stdcxx -L/spare/lib -lstd12d -mt -lpthread google.cpp > {noformat} > With the stdcxx 4.2.1 library, the return code is 1 indicating that find failed. However the return code is 0 when using sun studio with the Cstd or STLPort4 libraries. Compiling with g++ 4.1 on Linux also returns 0 indicating that find was successful. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
|
|
Closed: (STDCXX-1035) Issue with string::find(const string& str, size_type pos=0)[ https://issues.apache.org/jira/browse/STDCXX-1035?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Farid Zaripov closed STDCXX-1035. --------------------------------- The all changes are merged into 4.3.x and trunk thus: http://svn.apache.org/viewvc?rev=772571&view=rev http://svn.apache.org/viewvc?rev=772572&view=rev > Issue with string::find(const string& str, size_type pos=0) > ----------------------------------------------------------- > > Key: STDCXX-1035 > URL: https://issues.apache.org/jira/browse/STDCXX-1035 > Project: C++ Standard Library > Issue Type: Bug > Components: 21. Strings > Affects Versions: 4.1.4, 4.2.0, 4.2.1 > Environment: All > Reporter: Brian Nesbitt > Assignee: Farid Zaripov > Fix For: 4.2.2 > > > I recently encountered a problem with stdcxx demonstrated by the following example: > {noformat} > #include <string> > int main() > { > std::string s = ".google.com"; > std::string s1 = "www.google.google.com"; > std::string::size_type pos = s1.find(s); > if (pos != std::string::npos) > { > return 0; > } > else > { > return 1; > } > } > {noformat} > The code above was compiled using the sun studio 12 compiler: > {noformat} > CC -library=%none -I/spare/include/stdcxx -L/spare/lib -lstd12d -mt -lpthread google.cpp > {noformat} > With the stdcxx 4.2.1 library, the return code is 1 indicating that find failed. However the return code is 0 when using sun studio with the Cstd or STLPort4 libraries. Compiling with g++ 4.1 on Linux also returns 0 indicating that find was successful. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
| Free embeddable forum powered by Nabble | Forum Help |