D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 21344 - core.stdcpp.string.basic_string does not implement opEquals
Summary: core.stdcpp.string.basic_string does not implement opEquals
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: druntime (show other issues)
Version: D2
Hardware: All All
: P1 normal
Assignee: No Owner
URL:
Keywords: pull
Depends on:
Blocks:
 
Reported: 2020-10-27 21:11 UTC by Nathan S.
Modified: 2020-11-13 02:54 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Nathan S. 2020-10-27 21:11:31 UTC
Example code:
---
void main()
{
    import core.stdcpp.string : basic_string;
    char[64] buffer = 'a'; // Make this long enough that short string optimization is not applied.
    auto s1 = basic_string!char(buffer[]);
    auto s2 = basic_string!char(buffer[]);
    assert(s1 == s2); // This assertion fails.
}
---
Comment 1 Dlang Bot 2020-10-27 21:56:40 UTC
@n8sh updated dlang/druntime pull request #3254 "Fix - core.stdcpp.string.basic_string does not implement opEquals" fixing this issue:

- Fix Issue 21344 - core.stdcpp.string.basic_string does not implement opEquals

https://github.com/dlang/druntime/pull/3254
Comment 2 Dlang Bot 2020-11-06 02:56:18 UTC
dlang/druntime pull request #3254 "Fix - core.stdcpp.string.basic_string does not implement opEquals" was merged into stable:

- a99d3d23dd4079d95cb09af334a13dfb86e62b15 by Nathan Sashihara:
  Fix Issue 21344 - core.stdcpp.string.basic_string does not implement opEquals

https://github.com/dlang/druntime/pull/3254
Comment 3 Dlang Bot 2020-11-13 02:54:07 UTC
dlang/druntime pull request #3269 "merge stable" was merged into master:

- 278daf49afdcd379ba2ebc81f0916ab42e8ef630 by Nathan Sashihara:
  Fix Issue 21344 - core.stdcpp.string.basic_string does not implement opEquals

https://github.com/dlang/druntime/pull/3269