This is the mail archive of the
mailing list for the GCC project.
Re: Merge C++ conversion into trunk (3/6 - gengtype C++ support)
On 12-08-14 09:19 , Diego Novillo wrote:
+static const char *
+filter_type_name (const char *type_name)
Maybe this function should return const-less char *? The casts to cast
the const away for freeing it look a bit awkward.
I was too quick. The problem here is that we sometimes return
TYPE_NAME, which must be 'const char *'. So, the ugliness is unavoidable.