-
-
Notifications
You must be signed in to change notification settings - Fork 114
Non-class function prototypes are sometimes inserted inside class definition. #292
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
Labels
conclusion: resolved
Issue was resolved
topic: code
Related to content of the project itself
topic: preprocessor
Related to sketch preprocessing
type: imperfection
Perceived defect in any part of project
Comments
These produce different errors depending on the situation:
Correct result:
Buggy result:
|
The bug is caused by 287a9c8#diff-d9628c6c5e4ac5689a2cee322bf97ad5R73 ; I'm checking if there's a more clever way to check for matching signatures |
facchinm
added a commit
to facchinm/arduino-builder
that referenced
this issue
Sep 17, 2018
@oqibidipo would you mind testing #294 ? Thanks! |
Seems to do the right thing with my example.
Compilation fails with the 'correct' errors:
|
FWIW #294 fixes my issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
conclusion: resolved
Issue was resolved
topic: code
Related to content of the project itself
topic: preprocessor
Related to sketch preprocessing
type: imperfection
Perceived defect in any part of project
A.k.a. "Hello class, I found by the road some functions that look a bit like what we alrady have. Let's throw them in."
Originally reported at http://forum.arduino.cc/index.php?topic=568492.0
Example code
With generated prototypes
This happens when the name of a function is the same as or a substring of a name of class method like
loop
is a substring ofblooper
in the example.Tested with IDE version 1.8.7, Mac OS X 10.11.6.
OK with 1.8.5.
The text was updated successfully, but these errors were encountered: