[Bug c++/12390] Wrong line number for friend declaration of invalid template class
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Jul 26 04:10:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list