Non-template-friend warning.
Alexandre Oliva
aoliva@redhat.com
Wed Feb 14 19:12:00 GMT 2001
On Feb 14, 2001, Jacek Generowicz <jmg@ecs.soton.ac.uk> wrote:
> Is there a way of signalling that, in a particular case, the
> non-template nature of the friend is intended?
Not at this time. But we could probably remove a number of false
positives. For one, we currently print a warning even for:
template <class T>
class foo {
friend int bar(int);
};
because uses_the scope of foo<T>::bar(int) refers to T. Here's a patch
that fixes this. Ok to install, if it doesn't introduce any
regressions? Mainline and branch?
More information about the Gcc
mailing list