Open nico opened 10 years ago
mentioned in issue llvm/llvm-bugzilla-archive#46000
I already have a patch for this; just need to clean it up and check it in. (The problem is that delaying function template instantiation causes us to lose the "in implicit definition of special member function" context.)
FWIW, while this may be fine in this case, in the general case you get a diagnostic where all source locations are in system headers, with no indication of how you got there. We really need the extra note for that case...
I think this error message is OK for an unsophisticated user. A valid fix is to merely include the header for SQLTransationBackend
, and this is probably what most people do. In our Blink fixes, we're being a bit clever and realizing that we can avoid the compile time hit of header bloat by adding an out-of-line dtor in the .cpp
file.
A note about in implicit virtual destructor for 'DatabaseBackend'
would be nice, but we've also already got quite a few notes here.
I think this is the fix for this diagnostic. Note that the files touched in that change aren't listed in the compiler output.
assigned to @zygoloid
Extended Description
I got this diagnostic:
I think the fix is to make the destructor of a class explicit that isn't mentioned in the diagnostic at all (the class that has a
Deque<SQLTransactionBackend>
as member).