[Bug c++/37971] [4.2/4.3/4.4 Regression] Rejects default argument that is a template via access failure
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Oct 31 00:40:00 GMT 2008
------- Comment #3 from pinskia at gcc dot gnu dot org 2008-10-31 00:38 -------
Explictly by the following new code:
{
mark_used (fn);
/* We could not check access when this expression was originally
created since we did not know at that time to which function
the expression referred. */
if (DECL_FUNCTION_MEMBER_P (fn))
{
gcc_assert (access_path);
perform_or_defer_access_check (access_path, fn, fn);
}
}
Since this was already "bound", to the template we should not be performing
access checks for this template function.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37971
More information about the Gcc-bugs
mailing list