https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84782
--- Comment #7 from Raphael Kubo da Costa <raphael.kubo.da.costa at intel dot com> --- (In reply to Jonathan Wakely from comment #6) > Your example is not valid, and is rejected by GCC and Clang and EDG. Ugh, I forgot to test it with clang before posting my comment. I stand corrected. Is it relevant that your testcase builds fine when G's copy constructor is inlined?