[cfe-dev] A question related to bug 5866.
Enea Zaffanella
zaffanella at cs.unipr.it
Wed May 26 04:44:29 PDT 2010
Hello.
I was struggling against friend declarations of template function
specializations, i.e., something strongly related to the following
(resolved) bug:
http://llvm.org/bugs/show_bug.cgi?id=5866
The problem we have is the following: when visiting a friend declaration
such as the one used in the bug report above
friend streamsize
__copy_streambufs_eof<>(__streambuf_type*,
__streambuf_type*, bool&);
we call method getFriendDecl() and obtain a FunctionDecl*,
but when querying this pointer using method
bool FunctionDecl::isFunctionTemplateSpecialization()
the answer turns out to be negative.
Is this a bug, or are we just calling the method above out of its
specification? Are there other ways to check if a friend declaration is
referring to a template function specialization?
Regards,
Enea.
More information about the cfe-dev
mailing list