This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/85141] [6/7/8 Regression] ICE with pointer arithmetic of static member function address
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 03 Apr 2018 08:08:39 +0000
- Subject: [Bug c++/85141] [6/7/8 Regression] ICE with pointer arithmetic of static member function address
- Auto-submitted: auto-generated
- References: <bug-85141-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85141
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu.org
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Not really sure what can be done here, perhaps stabilize_expr could for these
FUNCTION_TYPE exp try to create a TARGET_EXPR for the address of
COMPONENT_REF's first operand and only keep the COMPONENT_REF with BASELINK and
optional NON_LVALUE_EXPR wrapping it in the returned expressio rather than also
in the TARGET_EXPR?