[Lemon-devel] Compilation error with gcc 4.7.1

Alpár Jüttner alpar at cs.elte.hu
Fri Sep 14 11:46:17 CEST 2012


Hi,

Unfortunately, this "dependent lookup" problem happens from time to time
and pretty difficult to cover all the cases by test codes.

It seems that the clang compiler is much better in discovering this
issue. We are working on clang support, and it will solve to this issue
as a byproduct.

Regards,
Alpar


On Mon, 2012-08-06 at 10:36 +0200, Robert Schwarz wrote:
> Dear developers
> 
> sorry for not opening a ticket, but the Trac registration seems to be
> broken:
>     "No handler matched request to /register"
> 
> I was happily using the Undirector from adapters.h until I updated my
> GCC to version 4.7.1 and now get the following error message:
> 
> > include/lemon/adaptors.h: In instantiation of ‘lemon::Undirector<DGR>::Undirector(DGR&) [with DGR = DistanceGraph]’:
> > DistanceGraph.cpp:194:31:   required from here
> > include/lemon/adaptors.h:2280:7: error: ‘initialize’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
> > include/lemon/adaptors.h:2280:7: note: declarations in dependent base ‘lemon::UndirectorBase<DistanceGraph>’ are not found by unqualified lookup
> > include/lemon/adaptors.h:2280:7: note: use ‘this->initialize’ instead
> 
> Following the second note and add the "this->" does indeed solve the
> problem.
> 
> Occured with Lemon 1.2, but the offensive code is still visisble in the
> online code browser.
> 
> Best
> 
> _______________________________________________
> Lemon-devel mailing list
> Lemon-devel at lemon.cs.elte.hu
> http://lemon.cs.elte.hu/mailman/listinfo/lemon-devel





More information about the Lemon-devel mailing list