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

Some compiler errors missed when "did you mean" is suggested. #136

Open
bakercp opened this issue Oct 15, 2014 · 0 comments
Open

Some compiler errors missed when "did you mean" is suggested. #136

bakercp opened this issue Oct 15, 2014 · 0 comments
Assignees
Milestone

Comments

@bakercp
Copy link
Member

bakercp commented Oct 15, 2014

Here is a minimal example:

void setup() {
    std::string s("Hello World!");
    s.substring(0);
}

This produces the following error:

HelloWorld:4:7: error: no member named 'substring' in 'std::basic_string<char>'; did you mean 'substr'?
    s.substring(0);
      ^~~~~~~~~
      substr
/usr/include/c++/4.2.1/bits/basic_string.h:1921:7: note: 'substr' declared here
      substr(size_type __pos = 0, size_type __n = npos) const
      ^
1 error generated.

This should be parsed.

@bakercp bakercp added this to the v0.4.0 milestone Oct 15, 2014
@bakercp bakercp modified the milestones: v0.4.0, v0.5.0 Dec 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants