[cfe-dev] A question related to bug 5866.
John McCall
rjmccall at apple.com
Wed May 26 10:34:13 PDT 2010
On May 26, 2010, at 4:44 AM, Enea Zaffanella wrote:
> 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?
It sounds like a bug.
John.
More information about the cfe-dev
mailing list