http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50276
--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-01-03 23:01:53 UTC --- But actually the test in Comment #1 (and #3) is rejected if test isn't a template, thus looks like an accepts-invalid, miscompiled. The first testcase is not. Probably the issues are related, though.