Commit bb6e5621 by Jason Merrill

re PR c++/27714 (operator new as friend in template class rejected)

        PR c++/27714
        * pt.c (push_template_decl_real): A friend template with class
        scope isn't primary.

From-SVN: r116551
parent e753d130
// PR c++/27714
template<typename> struct A
{
static void* operator new(__SIZE_TYPE__);
template<typename T> friend void* A<T>::operator new(__SIZE_TYPE__);
};
A<int> a;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment