From 41c31b5ab88cd1febff60eb3ffc6d8929a3308d4 Mon Sep 17 00:00:00 2001 From: Andrej Orsula Date: Sun, 22 Oct 2023 03:02:58 +0200 Subject: [PATCH] Fix forward declaration of Union Template - Addresses https://github.com/rust-lang/rust-bindgen/issues/1768 - Originated from https://github.com/Danielmelody/rust-bindgen/commit/854ed49abeef57d1b3c0e624e1d324b68ea02697 Signed-off-by: Andrej Orsula --- bindgen/ir/comp.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/bindgen/ir/comp.rs b/bindgen/ir/comp.rs index 1ff8961d4d..f8444063f5 100644 --- a/bindgen/ir/comp.rs +++ b/bindgen/ir/comp.rs @@ -1284,6 +1284,7 @@ impl CompInfo { CXCursor_ParmDecl => true, CXCursor_StructDecl | CXCursor_UnionDecl | CXCursor_ClassDecl => !cur.is_definition(), + CXCursor_ClassTemplate => kind == CompKind::Union && !cur.is_definition(), _ => false, });