http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54677
--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-09-23 12:30:15 UTC --- Most definitely a dejagnu buffer isn't big enough. Luckily, we can add something like: // { dg-options -ftemplate-depth=10 } without changing the substance of the test. Maybe you can give it a try now, but seems a good idea anyway.