Due SAM: The compiler attempts to instantiate a mismatched template specialization #2537
Open
3 tasks done
Labels
type: imperfection
Perceived defect in any part of project
Describe the problem
To reproduce
Expected behavior
This code can be compiled in both MSVC and Godbolt. Even in the Arduino IDE, the value of
constexpr auto BB
is correctly displayed asbool true
. But once it enters the compile phase, the compiler mistakenly tries to match the specialized_Allow_inheriting_unwrap
and then fails becauseunsigned int *
has no members to reference.Arduino CLI version
0.35.2
Operating system
Windows
Operating system version
Windows 11
Additional context
This issue only appears on the Arduino Due SAM platform. The AVR platform is normal.
Issue checklist
The text was updated successfully, but these errors were encountered: