Yeah, I just don't want to bring in too much bad code. More precise
analysis (not require too much work) will make Kontanstin's code work.
- Yang
John Regehr wrote:
Remember that it is totally OK to create code that doesn't compile.
As long as usable code is produced often enough (and as long as the
change doesn't stop the pass from producing usable code in other
circumstances) then something like this is fine.
John
Yes, I did and tried your patch. Applying your patch did remove A,
but it
could introduce other incompilable code during reduction, e.g.,
class A {};
template <class T> class B: A{};
class C : A {};
will be transformed to
template <class T> class B {};
class C : B {};
- Yang