From cd64aa2ad9ba44cb518a97f2c300ad303b6be065 Mon Sep 17 00:00:00 2001 From: Iain Buclaw Date: Tue, 24 Aug 2021 18:23:11 +0200 Subject: [PATCH] core.stdcpp.typeinfo: Use extern(C++, class) struct for the internal class type_info for CppRuntime_Gcc --- src/core/stdcpp/typeinfo.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/stdcpp/typeinfo.d b/src/core/stdcpp/typeinfo.d index e1dfcb204e..1a5122649d 100644 --- a/src/core/stdcpp/typeinfo.d +++ b/src/core/stdcpp/typeinfo.d @@ -103,7 +103,7 @@ else version (CppRuntime_Gcc) extern (C++, "__cxxabiv1") { - class __class_type_info; + extern(C++, class) struct __class_type_info; } extern (C++, "std"): @@ -125,7 +125,7 @@ else version (CppRuntime_Gcc) bool __is_pointer_p() const; bool __is_function_p() const; bool __do_catch(const type_info, void**, uint) const; - bool __do_upcast(const __class_type_info, void**) const; + bool __do_upcast(const __class_type_info*, void**) const; const(char)* _name; this(const(char)*);