While trying to reduce 14604, I found this seg fault on legal code struct X { X(); }; template <class T> void ChangeKey() { X newVal = X(); } template void ChangeKey<int>();
Woops a dup of bug 14545. #0 value_dependent_expression_p (expression=0x0) at /home/gates/pinskia/src/gnu/gcc/src/gcc/ cp/pt.c:11782 #1 0x0808ebcb in fold_non_dependent_expr (expr=0x4012b078) at /home/gates/pinskia/src/gnu/ gcc/src/gcc/cp/pt.c:3134 #2 0x080e64ee in cp_parser_initializer_clause (parser=0x40128b40, non_constant_p=0xbffebf57) at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:11519 *** This bug has been marked as a duplicate of 14545 ***