[Bug c++/45938] New: tree tag for CLASSTYPE_TEMPLATE_SPECIALIZATION "spec" is confusing.

JamesMikeDuPont at googlemail dot com gcc-bugzilla@gcc.gnu.org
Fri Oct 8 10:45:00 GMT 2010


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45938

           Summary: tree tag for CLASSTYPE_TEMPLATE_SPECIALIZATION "spec"
                    is confusing.
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: JamesMikeDuPont@googlemail.com


In the file : gcc/cp/dump.c
there is a dump of the CLASSTYPE_TEMPLATE_SPECIALIZATION,

   if (CLASSTYPE_TEMPLATE_SPECIALIZATION(t))
    dump_string(di, "spec");

This is confusing, because spec already has a different meaning, it is used to
denote other values, spec : NAME. 

It would be better to rename this output to dump_string(di, "tmpl_spclz"); for
example so that the tag spec is consistent.

thanks,
mike



More information about the Gcc-bugs mailing list