In file included from /in/compile/Dlist.h:80:0,
from /in/compile/dlist_driver.cpp:6:
/in/DlistImpl.h: In function 'int case3()':
/in/DlistImpl.h:68:2: error: 'list2.Dlist<int>::first' may be used uninitialized in this function [-Werror=maybe-uninitialized]
delete temp;
^~~~~~
/in/compile/dlist_driver.cpp:124:16: note: 'list2.Dlist<int>::first' was declared here
Dlist<int> list2(list1);
^~~~~
In file included from /in/compile/Dlist.h:80:0,
from /in/compile/dlist_driver.cpp:6:
/in/DlistImpl.h:43:16: error: 'list2.Dlist<int>::last' may be used uninitialized in this function [-Werror=maybe-uninitialized]
assert(last->next == nullptr);
^~~~
/in/compile/dlist_driver.cpp:124:16: note: 'list2.Dlist<int>::last' was declared here
Dlist<int> list2(list1);
^~~~~
In file included from /in/compile/Dlist.h:80:0,
from /in/compile/dlist_driver.cpp:6:
/in/DlistImpl.h: In function 'int case4()':
/in/DlistImpl.h:68:2: error: 'list2.Dlist<int>::first' may be used uninitialized in this function [-Werror=maybe-uninitialized]
delete temp;
^~~~~~
/in/compile/dlist_driver.cpp:167:16: note: 'list2.Dlist<int>::first' was declared here
Dlist<int> list2 = list1;
^~~~~
In file included from /in/compile/Dlist.h:80:0,
from /in/compile/dlist_driver.cpp:6:
/in/DlistImpl.h:43:16: error: 'list2.Dlist<int>::last' may be used uninitialized in this function [-Werror=maybe-uninitialized]
assert(last->next == nullptr);
^~~~
/in/compile/dlist_driver.cpp:167:16: note: 'list2.Dlist<int>::last' was declared here
Dlist<int> list2 = list1;
^~~~~
In file included from /in/compile/Dlist.h:80:0,
from /in/compile/dlist_driver.cpp:6:
/in/DlistImpl.h: In function 'int case5()':
/in/DlistImpl.h:25:17: error: 'list2.Dlist<int>::first' may be used uninitialized in this function [-Werror=maybe-uninitialized]
assert(first->prev == nullptr);
^~~~
/in/compile/dlist_driver.cpp:210:16: note: 'list2.Dlist<int>::first' was declared here
Dlist<int> list2(list1);
^~~~~
In file included from /in/compile/Dlist.h:80:0,
from /in/compile/dlist_driver.cpp:6:
/in/DlistImpl.h:43:16: error: 'list2.Dlist<int>::last' may be used uninitialized in this function [-Werror=maybe-uninitialized]
assert(last->next == nullptr);
^~~~
/in/compile/dlist_driver.cpp:210:16: note: 'list2.Dlist<int>::last' was declared here
Dlist<int> list2(list1);
^~~~~
In file included from /in/compile/Dlist.h:80:0,
from /in/compile/dlist_driver.cpp:6:
/in/DlistImpl.h: In function 'int case6()':
/in/DlistImpl.h:25:17: error: 'list2.Dlist<int>::first' may be used uninitialized in this function [-Werror=maybe-uninitialized]
assert(first->prev == nullptr);
^~~~
/in/compile/dlist_driver.cpp:258:16: note: 'list2.Dlist<int>::first' was declared here
Dlist<int> list2 = list1;
^~~~~
In file included from /in/compile/Dlist.h:80:0,
from /in/compile/dlist_driver.cpp:6:
/in/DlistImpl.h:43:16: error: 'list2.Dlist<int>::last' may be used uninitialized in this function [-Werror=maybe-uninitialized]
assert(last->next == nullptr);
^~~~
/in/compile/dlist_driver.cpp:258:16: note: 'list2.Dlist<int>::last' was declared here
Dlist<int> list2 = list1;
^~~~~
cc1plus: all warnings being treated as errors
/in/compile/Makefile:10: recipe for target 'buildDlist' failed
make: *** [buildDlist] Error 1