]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/d/decl.cc
d: Merge upstream dmd, druntime f8bae04558, phobos ba2ade9dec
[thirdparty/gcc.git] / gcc / d / decl.cc
index 25398a323818a34e35f8739b732b126c6c3bd84d..3b7627d3dfaf99168f7e62059799f799f8bc55e1 100644 (file)
@@ -2211,7 +2211,7 @@ get_vtable_decl (ClassDeclaration *decl)
   tree ident = mangle_internal_decl (decl, "__vtbl", "Z");
   /* Note: Using a static array type for the VAR_DECL, the DECL_INITIAL value
      will have a different type.  However the back-end seems to accept this.  */
-  tree type = build_ctype (Type::tvoidptr->sarrayOf (decl->vtbl.length));
+  tree type = build_ctype (dmd::sarrayOf (Type::tvoidptr, decl->vtbl.length));
 
   Dsymbol *vtblsym = decl->vtblSymbol ();
   vtblsym->csym = declare_extern_var (ident, type);