------- Comment #4 from jason at gcc dot gnu dot org 2009-03-22 14:01 ------- I was wrong; the previous paragraph says "Local variables shall not be used in default argument expressions."
3.3 was right to reject the testcase; delayed instantiation of default arguments only applies to function templates and member functions of class templates, not local declarations. Furthermore, a template for which no valid instantiation can be generated is ill-formed, though the implementation is not required to give a diagnostic. -- jason at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|ice-on-valid-code |ice-on-invalid-code http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39055