[Bug c++/87616] Compiler segfaults on dependent templated friend
mickg at mickg dot net
gcc-bugzilla@gcc.gnu.org
Mon Oct 15 17:35:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87616
--- Comment #2 from Michael Gorbovitski <mickg at mickg dot net> ---
Slightly simplified test case (no need for double-argument template):
struct foo{};
template <class A> struct friender {
using cls=foo;
};
class bar {
template <class X>
friend class friender<X>::cls;
int hidden;
};
int main() {
bar b;
}
More information about the Gcc-bugs
mailing list