From cb8ee37ec0437f135d6c64102dae231f431b9ff5 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 21 Sep 2023 13:43:41 +0200 Subject: Support integer template parameters in parser::emit_type_name() --- odb/parser.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/odb/parser.cxx b/odb/parser.cxx index 58388c9..719a3d2 100644 --- a/odb/parser.cxx +++ b/odb/parser.cxx @@ -2053,9 +2053,12 @@ emit_type_name (tree type, bool direct) if (i != 0) id += ", "; - // Assume type-only arguments. + // Assume integer and type-only arguments. // - id += emit_type_name (a); + if (TREE_CODE (a) == INTEGER_CST) + id += to_string (integer_value (a)); + else + id += emit_type_name (a); } id += '>'; -- cgit v1.1