You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
actual result: main.cpp2(10,5): error: a function must have a body ('=' initializer), unless it is virtual (has a 'virtual this' parameter) or is defaultable (operator== or operator<=>)
Describe the bug
cppfront does not allow to override a function into pure virtual. Whether base type function is pure or not has no impact.
To Reproduce
sample code:
expected result - something like this:
actual result:
main.cpp2(10,5): error: a function must have a body ('=' initializer), unless it is virtual (has a 'virtual this' parameter) or is defaultable (operator== or operator<=>)
Command lines
cppfront main.cpp2 -p
, built from commit dc3758aAdditional context
Conflicting documentation - https://hsutter.github.io/cppfront/cpp2/types/ says:
The text was updated successfully, but these errors were encountered: