An other preprocessing bug (probably). #1822
Labels
conclusion: duplicate
Has already been submitted
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Describe the problem
A sketch containing a function that makes use of a type created with
typedef
does not compile under certain circumstances. This issue may be related to bug #1785.To reproduce
When the following sketch is compiled,
this error is raised:
When the first two lines are swapped, the sketch compiles fine.
Expected behavior
Both sketches are expected to compile. For reference, the following code compiles without any errors or warnings
with the following command:
Arduino CLI version
nightly-20220803 Commit: 2dd8976 Date: 2022-08-03T01:36:48Z
Operating system
Linux
Operating system version
Debian bookworm/sid
Additional context
No response
Issue checklist
The text was updated successfully, but these errors were encountered: