diff --git a/src/corelib/tools/qhash.h b/src/corelib/tools/qhash.h index 07e2f2d355..f733e6c517 100644 --- a/src/corelib/tools/qhash.h +++ b/src/corelib/tools/qhash.h @@ -280,7 +280,7 @@ struct Span { // When a node gets inserted, the first free entry is being picked, removed // from the singly linked list and the Node gets constructed in place. struct Entry { - typename std::aligned_storage::type storage; + struct { alignas(Node) unsigned char data[sizeof(Node)]; } storage; unsigned char &nextFree() { return *reinterpret_cast(&storage); } Node &node() { return *reinterpret_cast(&storage); }