Skip to content

FIX: Add default virtual destructors to various abstract classes#2114

Open
philippremy wants to merge 1 commit intoalicevision:developfrom
philippremy:bits/virtual-dtors
Open

FIX: Add default virtual destructors to various abstract classes#2114
philippremy wants to merge 1 commit intoalicevision:developfrom
philippremy:bits/virtual-dtors

Conversation

@philippremy
Copy link
Copy Markdown
Contributor

The missing virtual dtors caused a SIGTRAP on macOS. Calling delete on abstract classes is UB, which is hereby removed. I suspect that the SIGTRAP is caused by a memory alignment mismatch because the wrong dtor is running.

Additionally silences a bunch of warnings emitted by Clang.

The missing virtual dtors caused a SIGTRAP on macOS. Calling delete on
abstract classes is UB, which is hereby removed.

Additionally silences a bunch of warnings emitted by Clang.

Signed-off-by: Philipp Remy <philipp@philippremy.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant