https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69694
--- Comment #3 from Patrick Palka <ppalka at gcc dot gnu.org> --- (In reply to bloerwald from comment #2) > (In reply to Patrick Palka from comment #1) > > g++ 4.9 compiles this successfully, g++ 5.1 doesn't, neither does trunk. > > The original testcase as well as the code it was reduced from failed on > 4.9.2 as well. Is this still the same issue? I'm not sure what causes 4.9 to reject one test case and accept the other, but I think the issue is still ultimately the same. A patch I am testing against trunk makes both test cases compile.