mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-17 15:34:34 +00:00
Inheritance fix
* src/abg-ir.h (class template_non_type_parameter): Make this inherit decl_base virtually.
This commit is contained in:
parent
f6a157a519
commit
2b44ad22ea
@ -1401,7 +1401,8 @@ struct template_type_parameter_hash
|
||||
};//end struct template_type_parameter_hash
|
||||
|
||||
/// Abstracts non type template parameters.
|
||||
class template_non_type_parameter : public template_parameter, public decl_base
|
||||
class template_non_type_parameter : public template_parameter,
|
||||
public virtual decl_base
|
||||
{
|
||||
// Forbidden
|
||||
template_non_type_parameter();
|
||||
@ -1412,8 +1413,8 @@ public:
|
||||
const std::string& name,
|
||||
shared_ptr<type_base> type,
|
||||
location locus)
|
||||
: template_parameter(index),
|
||||
decl_base(name, locus, ""),
|
||||
: decl_base(name, locus, ""),
|
||||
template_parameter(index),
|
||||
m_type(type)
|
||||
{}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user