New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"No matching class member found" warning is incorrect (Origin: bugzilla #570238) #3251

Closed
doxygen opened this Issue Jul 2, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@doxygen
Owner

doxygen commented Jul 2, 2018

status RESOLVED severity minor in component general for ---
Reported in version 1.5.8 on platform Other
Assigned to: Dimitri van Heesch

Original attachment names and IDs:

On 2009-02-02 16:47:32 +0000, Nick wrote:

Please describe the problem:
This warning should not be issued in this context. I can build code with no warnings, and am "using Rc::Exec::HelperThread;" right above the implementation.

Error:
C:/users/npcostes/TGP-branch/B52TGP/TgpLib/Rc/Tgp/HelperThreads/CaptureThread/Requests/SetCaptureThreadChannel.cpp:26: Warning: no matching class member found for
SetCaptureThreadChannel::SetCaptureThreadChannel(Rc::Tgp::HelperThreads::CaptureThreadChannel channel, HelperThread *helperThread)
Possible candidates:
Rc::Tgp::HelperThreads::SetCaptureThreadChannel::SetCaptureThreadChannel(const Rc::Tgp::HelperThreads::CaptureThreadChannel channel=Rc::Tgp::HelperThreads::CaptureThreadChannel::e_flir, Rc::Exec::HelperThread *helperThread=0)
Rc::Tgp::HelperThreads::SetCaptureThreadChannel::SetCaptureThreadChannel(const SetCaptureThreadChannel &request)

Declaration:
SetCaptureThreadChannel (const Rc::Tgp::HelperThreads::CaptureThreadChannel channel = Rc::Tgp::HelperThreads::CaptureThreadChannel::e_flir,
Rc::Exec::HelperThread* helperThread = 0);

Implementation:
using Rc::Tgp::HelperThreads::SetCaptureThreadChannel;

using Rc::Tgp::HelperThreads::CaptureThreadChannel;
using Rc::Exec::HelperThread;

SetCaptureThreadChannel::SetCaptureThreadChannel(const CaptureThreadChannel channel,
HelperThread* helperThread)
: HelperThreadRequest(HelperThreadRequest::Type::e_setCaptureThreadChannel, helperThread),
m_channel (channel)
{
setHelperThreadName ("CaptureThread");
}

Steps to reproduce:

  1. Run doxygen on the above code.

Actual results:

Expected results:

Does this happen every time?
yes

Other information:
If I change the implementation to be

const CaptureThreadChannel channel, Rc::Exec::HelperThread* helperThread)

Then doxygen emits no warning. Note that since I am "using Rc::Exec::HelperThread;" I think I should not have to fully qualify it in the implementation (esp. since it compiles w/no warnings).
Thanks!

On 2009-02-02 16:50:59 +0000, Nick wrote:

Created attachment 127771
test case with source code and log output

On 2009-02-02 16:54:32 +0000, Nick wrote:

Also, adding a "using namespace Rc::Exec;" instead of "using Rc::Exec::HelperThread;" doesn't help. Only fully qualifying the parameter type as Rc::Exec::HelperThread* makes the Doxygen warning go away.

PS: Thank you so much for writing and maintaining Doxygen, it is a wonderful tool.

On 2009-02-10 19:33:39 +0000, Wolfgang Bangerth wrote:

Here's a small and self contained testcase:

template struct B {
struct I { I(); };
};

template struct D : B {};

template
B::I::I () {}

For this one I get the following:

/precondition_block.h:8: Warning: no matching class member found for
template < T >
B< T >::I::I()

Best
Wolfgang

On 2009-08-12 12:13:18 +0000, Dimitri van Heesch wrote:

Wolfgang: thanks for the test case.
The problem should be fixed in the next release.

On 2009-08-20 10:13:02 +0000, Dimitri van Heesch wrote:

This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.6.0. Please verify if this is indeed the case and reopen the
bug if you think it is not fixed (include any additional information that you
think can be relevant).

@doxygen doxygen closed this Jul 2, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment