https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69323
Jason Merrill <jason at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|ice-on-valid-code |ice-on-invalid-code Status|NEW |RESOLVED Resolution|--- |FIXED Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org Target Milestone|4.9.4 |5.4 --- Comment #9 from Jason Merrill <jason at gcc dot gnu.org> --- The testcase is ill-formed. To make it valid, you need to change Outer:: to Outer<VAL>::. That also caused GCC to ICE, but I've now checked in a fix. For GCC 6, we will also properly diagnose the ill-formed testcase.