This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/71723] [5/6/7 Regression] [F08] ICE on invalid pointer initialization
- From: "w6ws at earthlink dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 18 Nov 2016 16:46:29 +0000
- Subject: [Bug fortran/71723] [5/6/7 Regression] [F08] ICE on invalid pointer initialization
- Auto-submitted: auto-generated
- References: <bug-71723-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71723
--- Comment #6 from Walter Spector <w6ws at earthlink dot net> ---
Hi Janus,
Your test case in Comment #5 is fine - because it is not attempting to
initialize the pointer at compile time. Initializing a pointer at compile time
is a F2008 feature. I was testing this F2008 feature when I encountered the
ICE which prompted this bug report.
If I feed my original test case into ifort (v17), I get:
/tmp/wws> ifort ptr2.f90
ptr2.f90(10): error #8813: The target must have the TARGET attribute. [DATA]
integer, pointer :: idata => data%i
-------------------------------^
compilation aborted for ptr2.f90 (code 1)
/tmp/wws>