[C++ Patch] PR 11586

2012-05-15 Thread Paolo Carlini
Hi, this small patch fixes the problem using the approach indicated by Jason in the audit trail, already used in many other similar cases. Booted and tested x86_64-linux. Thanks, Paolo. / /cp 2012-05-15 Paolo Carlini paolo.carl...@oracle.com PR c++/11586

Re: [C++ Patch] PR 11586

2012-05-15 Thread Jason Merrill
OK. Jason

Re: [C++ Patch] PR 11586

2012-05-15 Thread Paolo Carlini
On 05/15/2012 03:14 PM, Jason Merrill wrote: OK. Thanks. I applied the patch. However, I just noticed that I somehow missed a small issue in the testsuite (sorry): we have a testcase which is now failing because in templates we don't warn anymore (the warning is produced by

Re: [C++ Patch] PR 11586

2012-05-15 Thread Jason Merrill
On 05/15/2012 04:40 PM, Paolo Carlini wrote: However, I just noticed that I somehow missed a small issue in the testsuite (sorry): we have a testcase which is now failing because in templates we don't warn anymore (the warning is produced by warn_for_div_by_zero which also uses