[Bug c++/71448] pointer relational comparison fails inside constant expression
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jun 8 12:58:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71448
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Jun 8 12:57:26 2016
New Revision: 237212
URL: https://gcc.gnu.org/viewcvs?rev=237212&root=gcc&view=rev
Log:
PR c++/71448
* fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
the same as DECL_P (base0) for indirect_base0. Use equality_code
in one further place.
* g++.dg/torture/pr71448.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/torture/pr71448.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/fold-const.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list