[Bug c++/46170] [4.4/4.5/4.6 Regression] g++ wrongly rejects pointer-to-member in template arguments

dodji at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Nov 8 10:16:00 GMT 2010


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46170

--- Comment #21 from Dodji Seketeli <dodji at gcc dot gnu.org> 2010-11-08 10:16:19 UTC ---
"jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> writes:

> --- Comment #19 from Jason Merrill <jason at gcc dot gnu.org> 2010-11-02 16:36:01 UTC ---
> I think we can avoid the extra patch for 4.4 by just removing the code that
> changes c_inhibit_evaluation_warnings; let's do that.

If we do that then the test template/sfinae25.C accompanying the patch
fails by emitting the warning:

sfinae25.C:12: warning: division by zero

I suppose this is precisely what the code changing
c_inhibit_evaluation_warnings
in tsubst_template_arg was meant to address, isn't it?



More information about the Gcc-bugs mailing list