diff --git a/src/main/java/org/bytedeco/javacpp/tools/Parser.java b/src/main/java/org/bytedeco/javacpp/tools/Parser.java index 65046ca8..f2784e82 100644 --- a/src/main/java/org/bytedeco/javacpp/tools/Parser.java +++ b/src/main/java/org/bytedeco/javacpp/tools/Parser.java @@ -654,6 +654,8 @@ TemplateMap template(Context context) throws ParserException { String key = t.value; map.put(key, map.get(key)); token = tokens.next(); + } else { + map.put("[" + (map.size() + 1) + "]", null); // Anonymous type } } else if (token.match(Token.IDENTIFIER)) { Type type = type(context); // ignore?