Message ID | 8cc60b80eb233f0314e889da4d1861ac@imap.force9.net |
---|---|
State | New |
Headers | show |
--- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -28897,12 +28897,12 @@ c_parse_file (void) /* Create an identifier for a generic parameter type (a synthesized template parameter implied by `auto' or a concept identifier). */ +static GTY(()) int generic_parm_count; static tree make_generic_type_name () { char buf[32]; - static int i = 0; - sprintf (buf, "<auto%d>", ++i); + sprintf (buf, "<auto%d>", ++generic_parm_count); return get_identifier (buf); }