[Bug c++/71448] pointer relational comparison fails inside constant expression
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jun 14 14:44:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71448
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Jun 14 14:43:42 2016
New Revision: 237447
URL: https://gcc.gnu.org/viewcvs?rev=237447&root=gcc&view=rev
Log:
Backported from mainline
2016-06-08 Jakub Jelinek <jakub@redhat.com>
Richard Biener <rguenther@suse.de>
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:
branches/gcc-6-branch/gcc/testsuite/g++.dg/torture/pr71448.C
Modified:
branches/gcc-6-branch/gcc/ChangeLog
branches/gcc-6-branch/gcc/fold-const.c
branches/gcc-6-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list