From 0a63813315ac1c956cf525737ff969dab5fa1633 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johel=20Ernesto=20Guerrero=20Pe=C3=B1a?= Date: Thu, 10 Oct 2024 15:35:18 -0400 Subject: [PATCH] fix(to_cpp1): add `typename` only to a _qualified-id_ --- source/to_cpp1.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/source/to_cpp1.h b/source/to_cpp1.h index 57f69d9c3c..41571b9b68 100644 --- a/source/to_cpp1.h +++ b/source/to_cpp1.h @@ -5059,9 +5059,13 @@ class cppfront auto req = std::string{"std::is_convertible_v(&type_id.id) + // The call to 'print_to_string' just computed this. + // We could cache that so it's reused here. + && is_dependent(type_id) + ) + { req += "typename "; } req += param_type;