This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/71723] [5/6/7 Regression] [F08] ICE on invalid pointer initialization


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>

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]