Re: [C++ Patch] Avoid reporting routines re-entered errors from finish_compound_literal

2011-12-18 Thread Jason Merrill
Let's use tf_warning_or_error instead of tf_warning; I don't think we ever pass tf_error without tf_warning, but we would want to check narrowing in that case if we ever did. OK with that change. Jason

[C++ Patch] Avoid reporting routines re-entered errors from finish_compound_literal

2011-12-18 Thread Paolo Carlini
Hi, today I was having a look to c++/50855: for the testcase therein currently we are trying to just emit a "sorry, unimplemented: mangling constructor" and bail out. This is actually the case in 4_6-branch. In mainline, instead: 50855.C: In substitution of ‘template decltype ({256}) test(c