Generate more intuitive name for 'auto' parameters.
authorabutcher <abutcher@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 23 Sep 2013 22:43:25 +0000 (22:43 +0000)
committerabutcher <abutcher@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 23 Sep 2013 22:43:25 +0000 (22:43 +0000)
* parser.c (make_generic_type_name): Spell generic type names '<autoN>'
rather than '__GenN'.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@202849 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/parser.c

index c97cb45..156dea2 100644 (file)
@@ -1,5 +1,10 @@
 2013-09-23  Adam Butcher  <adam@jessamine.co.uk>
 
+       * parser.c (make_generic_type_name): Spell generic type names '<autoN>'
+       rather than '__GenN'.
+
+2013-09-23  Adam Butcher  <adam@jessamine.co.uk>
+
        * lambda.c (maybe_add_lambda_conv_op): Don't check for instantiated
        callop in the case of generic lambdas.
 
index fac3808..82abf7c 100644 (file)
@@ -28902,7 +28902,7 @@ static tree
 make_generic_type_name ()
 {
   char buf[32];
-  sprintf (buf, "__GenT%d", ++generic_parm_count);
+  sprintf (buf, "<auto%d>", ++generic_parm_count);
   return get_identifier (buf);
 }