https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84044
--- Comment #1 from Geoffrey Allott <geoffrey at allott dot email> --- I discovered that in b.cpp a free function A get() { return A(); } also triggers the error. Struct B is not necessary.
geoffrey at allott dot email Thu, 25 Jan 2018 14:09:06 -0800
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84044
--- Comment #1 from Geoffrey Allott <geoffrey at allott dot email> --- I discovered that in b.cpp a free function A get() { return A(); } also triggers the error. Struct B is not necessary.