Re: [patch] PR47747: Fix error messages for calls to transaction_unsafe virtual functions.

2011-11-21 Thread Richard Henderson
On 11/21/2011 12:37 PM, Torvald Riegel wrote: > PR47747: Fix error messages for calls to unsafe virtual functions. > > gcc/ > * trans-mem.c (diagnose_tm_1): Print an expression instead of a > declaration in error messages for indirect calls. > > testsuite/ >

[patch] PR47747: Fix error messages for calls to transaction_unsafe virtual functions.

2011-11-21 Thread Torvald Riegel
This just tweaks the error message to use an expression (%qE) instead of a declaration (%qD) when we complain about an indirect call being unsafe. The output isn't very pretty, but it does seem to do the job. Also, if it is a direct call, it should hopefully always be some kind of expression. All