Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Brokenness for custom string literals #28

Closed
Muzer opened this issue Jun 4, 2018 · 1 comment
Closed

Brokenness for custom string literals #28

Muzer opened this issue Jun 4, 2018 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@Muzer
Copy link

Muzer commented Jun 4, 2018

I just had the following code:

#include <string>
#include <vector>

int main()
{
  using namespace std::string_literals;
 
  std::vector<std::string> foo{"foo"s, "bar"s};
}

...and cppinsights gave me the following output:

#include <string>
#include <vector>

int main()
{
  using namespace std::string_literals;
 
  std::vector<std::string> foo{ std::initializer_list<std::basic_string<char> >{ std::operator""s("foo", 3ul), std::operator""s(std::operator""s("foo", 3ul) 3std::operator""s("bar", 3ul)};
}

Note especially the 3std.

@andreasfertig andreasfertig added the bug Something isn't working label Jun 4, 2018
@andreasfertig andreasfertig self-assigned this Jun 4, 2018
@andreasfertig
Copy link
Owner

Hi,

thanks for reporting it.

andreasfertig pushed a commit that referenced this issue Jun 4, 2018
Fixed #28: Multiple matchers rewrote a statement.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants