Re: [C++ PATCH] Issue hard error even with -fpermissive for certain goto violations (PR c++/67409, take 2)

2015-11-19 Thread Jason Merrill
OK. Jason

[C++ PATCH] Issue hard error even with -fpermissive for certain goto violations (PR c++/67409, take 2)

2015-11-19 Thread Jakub Jelinek
On Thu, Nov 19, 2015 at 02:52:55AM +, Manuel López-Ibáñez wrote: > static bool > error_jumpto (diagnostic_t kind, location_t loc, tree decl) > { > bool complained = (decl >? emit_diagnostic (kind, input_location, 0, > "jump to label %q

Re: [C++ PATCH] Issue hard error even with -fpermissive for certain goto violations (PR c++/67409)

2015-11-18 Thread Manuel López-Ibáñez
On 18/11/15 22:55, Jakub Jelinek wrote: static bool -identify_goto (tree decl, const location_t *locus) +identify_goto (tree decl, const location_t *locus, bool harderr) { - bool complained = (decl -? permerror (input_location, "jump to label %qD", decl) -

[C++ PATCH] Issue hard error even with -fpermissive for certain goto violations (PR c++/67409)

2015-11-18 Thread Jakub Jelinek
Hi! Before Paolo's changes, e.g. identify_goto always used permerror, and then depending on the severity of the issue either issued another permerror describing in detail the issue, or error. In particular, entering scope of a decl with non-trivial dtor has been a permerror, pretty much everything