[Bug c++/11782] New: confusing error messages

igodard at pacbell dot net gcc-bugzilla@gcc.gnu.org
Sun Aug 3 13:08:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: confusing error messages
           Product: gcc
           Version: 3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: igodard at pacbell dot net
                CC: gcc-bugs at gcc dot gnu dot org

The code is trying to make *any* instance of template Foo be a friend of class Bar. In the original code Foo had several arguments, and the messages complaining about "partial specialization" led me down a merry chase trying to figure out which arguments were spcialized and which were not, when to all appearances all were. In this reduced case there's only one argument, but the compiler message still refers to "partial". It's not clear (to me) whether code this counts as "all specialized" or "non specialized", but it is surely not "partial".

Incidentally, how *do* you make a template (not an instance) be a friend? I still haven't figured it out despite massive syntax poking. Or is this not implemented?



More information about the Gcc-bugs mailing list