I'm not sure whether this is a Claw bug or a libresect bug.
Consider this example:
namespace my_ns {
using conv_padding_mode_t = int;
template <int D>
struct ConvOptions {
using padding_mode_t = conv_padding_mode_t;
padding_mode_t& padding_mode() {
return padding_mode_;
}
private:
padding_mode_t padding_mode_;
};
using Conv1dOptions = ConvOptions<1>;
} // namespace my_ns
The defifun for padding_mode references padding_mode_t, but there's no defitype for it. The problem occurs only if ConvOptions is a template class.
See libresect #12 for a convenient way to run the example. As for that bug, I think the problem here occurs in only one source file (the same one, in fact), so I can probably work around it for now by editing the file.
I'm not sure whether this is a Claw bug or a libresect bug.
Consider this example:
The
defifunforpadding_modereferencespadding_mode_t, but there's nodefitypefor it. The problem occurs only ifConvOptionsis a template class.See libresect #12 for a convenient way to run the example. As for that bug, I think the problem here occurs in only one source file (the same one, in fact), so I can probably work around it for now by editing the file.