diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2023-09-21 13:43:41 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2023-09-21 13:43:41 +0200 |
commit | cb8ee37ec0437f135d6c64102dae231f431b9ff5 (patch) | |
tree | b41d8923fad581a2b8fe7abc6995cb2aae7c1c11 | |
parent | 1ae87796a1c76e4f78763e788aa5027e5e1cccc2 (diff) |
Support integer template parameters in parser::emit_type_name()
-rw-r--r-- | odb/parser.cxx | 7 |
1 files 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 += '>'; |