From 9b6b256399cb6e581cd01ca25caf92d8ffba3cc7 Mon Sep 17 00:00:00 2001 From: Martin Kinkelin Date: Fri, 8 Jun 2018 17:34:13 +0200 Subject: [PATCH] Fix TargetABI::isPOD() for static arrays of non-PODs --- gen/abi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen/abi.cpp b/gen/abi.cpp index def95ad9f3..c5140bd8f4 100644 --- a/gen/abi.cpp +++ b/gen/abi.cpp @@ -224,7 +224,7 @@ bool hasCtor(StructDeclaration *s) { } bool TargetABI::isPOD(Type *t, bool excludeStructsWithCtor) { - t = t->toBasetype(); + t = t->baseElemOf(); if (t->ty != Tstruct) return true; StructDeclaration *sd = static_cast(t)->sym;