Index: uspace/lib/cpp/include/__bits/thread/packaged_task.hpp
===================================================================
--- uspace/lib/cpp/include/__bits/thread/packaged_task.hpp	(revision 5d71d0925b5a9aa04fc924df570a0f07fb01d6e5)
+++ uspace/lib/cpp/include/__bits/thread/packaged_task.hpp	(revision d276424ff3b4c7e2bd255ed96a237055ea6f3d8b)
@@ -77,7 +77,7 @@
                 : func_{forward<F>(f)}, state_{}
             {
-                auto rebound = allocator_traits<Allocator>::rebind<
-                    aux::shared_state<R>
-                >{a};
+                typename allocator_traits<
+                    Allocator
+                >::template rebind_alloc<aux::shared_state<R>> rebound{a};
 
                 state_ = rebound.allocate(1);
Index: uspace/lib/cpp/include/__bits/thread/promise.hpp
===================================================================
--- uspace/lib/cpp/include/__bits/thread/promise.hpp	(revision 5d71d0925b5a9aa04fc924df570a0f07fb01d6e5)
+++ uspace/lib/cpp/include/__bits/thread/promise.hpp	(revision d276424ff3b4c7e2bd255ed96a237055ea6f3d8b)
@@ -57,7 +57,7 @@
                     : state_{}
                 {
-                    auto rebound = allocator_traits<Allocator>::rebind<
-                        aux::shared_state<R>
-                    >{a};
+                    typename allocator_traits<
+                        Allocator
+                    >::template rebind_alloc<aux::shared_state<R>> rebound{a};
 
                     state_ = rebound.allocate(1);
