Indiana Unversity logo[ConceptGCC]

ConceptGCC :

Re: Possible bug

From: Douglas Gregor (doug.gregor_at_[hidden])
Date: 2007-03-14 05:37:31


On Sun, 2007-03-11 at 00:17 -0800, Brad Austin wrote:
> I'm getting a compilation error on the following code, which I think
> is correct:
[snip code]
>
> The error is:
>
> test.cpp:24: error: no matching function for call to ‘foo<inner_functor_type, argument_type>::operator()(inner_functor_type&, const argument_type&)’
> test.cpp:22: note: candidates are: bool foo<inner_functor_type, argument_type>::operator()(const argument_type&)
>
> If I'm understanding this correctly, in this line:
>
> return inner_functor( argument );
>
> the compiler seems to be incorrectly trying to call:
>
> foo::operator()( inner_functor_type&, const argument_type& )
>
> instead of:
>
> inner_functor_type::operator()( const argument_type& )
>
> Does this look right, or am I confused?

You're right; it's a ConceptGCC bug. Thanks!

        Cheers,
        Doug