https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71723
janus at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |accepts-invalid
CC| |janus at gcc dot gnu.org
Summary|[5/6/7 Regression] ICE with |[5/6/7 Regression] [F08]
|attempted pointer |ICE on invalid pointer
|initialization |initialization
--- Comment #3 from janus at gcc dot gnu.org ---
(In reply to Walter Spector from comment #0)
> The example is not legal. Nonetheless, the compiler should not ICE.
Could you explain why exactly the example is illegal? I guess because 'data'
lacks the TARGET attribute?
When removing the POINTER attribute on 'data', the example is correctly
rejected. So possibly the problem is that 'data%i' is believed to have the
POINTER attribute, because 'data' itself is a pointer.