Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » UppHub » Tree container - compile error with Clang++
Tree container - compile error with Clang++ [message #55011] Sun, 04 October 2020 21:21 Go to next message
wimpie is currently offline  wimpie
Messages: 46
Registered: March 2013
Location: holland
Member
Hello,

Compiling package Bazaar/TreeTest is good with gcc, but clang++ gives the following error:

In file included from /home/tommie/Programming/ultimatepp/bazaar/TreeTest/main.cpp:1:
In file included from /home/tommie/Programming/ultimatepp/bazaar/TreeTest/TreeTest.h:11:
/home/tommie/Programming/ultimatepp/bazaar/Tree/Tree.h:112:11: error: dependent using declaration resolved to type without 'typename'
        using B::ConstIterator;
                 ^
/home/tommie/Programming/ultimatepp/bazaar/Tree/Tree.h:152:11: note: in instantiation of template class 'Upp::Tree<Upp::Node<Upp::One<Element> > >' requested here
        : public Tree<Node<T> >
                 ^
/home/tommie/Programming/ultimatepp/bazaar/TreeTest/TreeTest.h:31:22: note: in instantiation of template class 'Upp::Node<Upp::One<Element> >' requested here
        Node<One<Element> > root;
                            ^
/home/tommie/Programming/ultimatepp/uppsrc/Core/Vcont.h:449:8: note: target of using declaration
        class ConstIterator {
              ^

Same for "using B::Iterator;"

My knowledge of C++ is not that great so I am not really understanding what is the problem at hand.
From searching I get the idea it might not strictly correct C++ syntax although GCC accepts it.
Suggestions are that "using B::B" should be correct and when I change the 2 lines to that the test package actually happily compiles.

But I'm not very confident this is the solution..



regards


edit: well, actually removing those lines seems o.k. too...

[Updated on: Sun, 04 October 2020 21:25]

Report message to a moderator

Re: Tree container - compile error with Clang++ [message #55012 is a reply to message #55011] Sun, 04 October 2020 21:49 Go to previous message
Klugier is currently offline  Klugier
Messages: 882
Registered: September 2012
Location: Poland, Kraków
Experienced Contributor
Hello Wimpie,

Should be fixed on trunk by removing unnecessary using statements. Thanks! I also notified maintainer of this package, so maybe he will response. Right now we would like to make sure that the compilation of bazaar is stable.

For me the whole Test just displayed empty window, so the problem here might be bigger and require more time. If you have any suggestion please let me know.

Klugier


Ultimate++ - one framework to rule them all.

[Updated on: Sun, 04 October 2020 21:51]

Report message to a moderator

Previous Topic: ChromiumBrowser doesn't compile with latest CEF (85.3)
Next Topic: Tree container - compile error when using Add()
Goto Forum:
  


Current Time: Thu Oct 21 08:02:47 CEST 2021

Total time taken to generate the page: 0.00899 seconds