Home » Developing U++ » UppHub » Tree container - compile error with Clang++
Tree container - compile error with Clang++ [message #55011] |
Sun, 04 October 2020 21:21 |
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 |
|
Klugier
Messages: 1076 Registered: September 2012 Location: Poland, Kraków
|
Senior 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
U++ - one framework to rule them all.
[Updated on: Sun, 04 October 2020 21:51] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sat May 04 14:35:53 CEST 2024
Total time taken to generate the page: 0.02062 seconds
|