This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/12390] Wrong line number for friend declaration of invalid template class


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-07-26 04:10 -------
This is a dup of bug 8570, the error is outputed is slightly different but the code uses function, error:
      if (TREE_CODE (tmpl_parm) != TREE_CODE (parm)) 
        {
          cp_error_at ("template parameter `%#D'", tmpl_parm);
          error ("redeclared here as `%#D'", parm);
          return;
        }
     
      if (tmpl_default != NULL_TREE && parm_default != NULL_TREE)  
        {
          /* We have in [temp.param]:

             A template-parameter may not be given default arguments
             by two different declarations in the same scope.  */
          error ("redefinition of default argument for `%#D'", parm);
          error ("%J  original definition appeared here", tmpl_parm);
          return;
        }

*** This bug has been marked as a duplicate of 8570 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]