https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65719
Christian Kandeler <christian.kandeler at theqtcompany dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |christian.kandeler@theqtcom | |pany.com --- Comment #5 from Christian Kandeler <christian.kandeler at theqtcompany dot com> --- Created attachment 35700 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35700&action=edit test case I have attached a different test case for what is likely the same bug. Note that the code builds fine if f is changed to take T by value instead of const ref.