https://bugs.llvm.org/show_bug.cgi?id=5716
Bastien Penavayre <bastienpen...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bastienpen...@gmail.com
Status|RESOLVED |REOPENED
Resolution|FIXED |---
--- Comment #2 from Bastien Penavayre <bastienpen...@gmail.com> ---
The example given is resolved but there are other cases that aren't,
for instance:
struct flag
{
template<class T>
friend void *init(flag, T);
};
template<class R>
struct writer
{
template<class T>
friend void *init(flag, T) {
return nullptr;
}
};
int main()
{
void *data = init(flag{}, 42);
writer<int> tmp;
//note that if the next line is uncommented the link error disappear:
//sizeof(init(flag{}, 42));
}
produce the error:
undefined reference to `void* init<int>(flag, int)'
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs