On 01/13/2012 01:16 PM, Paolo Carlini wrote:
in C++11 mode after erroring out for an undeclared name we can easily end up calling cxx_eval_constant_expression on a CAST_EXPR etc, which has error_mark_node as argument.
We should never pass uninstantiated trees to cxx_eval_constant_expression; they need to go through tsubst first.
Jason