aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAdam Butcher <adam@jessamine.co.uk>2013-09-23 23:43:25 +0100
committerAdam Butcher <abutcher@gcc.gnu.org>2013-09-23 23:43:25 +0100
commit1a4109b68586ceb6c852cb6c405967ff084b7800 (patch)
tree864532f49b63a77bc1309dc752ca75fad3e302b8 /gcc
parent162b25fa1b382102f85ecdd804f8635eaa6a43aa (diff)
downloadgcc-1a4109b68586ceb6c852cb6c405967ff084b7800.zip
gcc-1a4109b68586ceb6c852cb6c405967ff084b7800.tar.gz
gcc-1a4109b68586ceb6c852cb6c405967ff084b7800.tar.bz2
Generate more intuitive name for 'auto' parameters.
* parser.c (make_generic_type_name): Spell generic type names '<autoN>' rather than '__GenN'. From-SVN: r202849
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/parser.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index c97cb45..156dea2 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -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.
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c
index fac3808..82abf7c 100644
--- a/gcc/cp/parser.c
+++ b/gcc/cp/parser.c
@@ -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);
}