Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] CPPClassInstance vs CPPClassSpecialization

Does anybody know why B<0> in the following code gets resolved to CPPClassInstance instead of CPPClassSpecialization?

struct A {};

template <int V>
struct B {};

template <>
struct B<0> : A {};

This doesn't look right and is possibly a contributing factor for the StackOverflowError in https://bugs.eclipse.org/bugs/show_bug.cgi?id=466362.

-sergey

Back to the top