------- Comment #1 from burnus at gcc dot gnu dot org  2010-09-21 13:47 -------
TODO: Check whether the code is really invalid - C551 talks only about
nonpointers, but it also talks about "proc-target" - which only applies to
procedures and the PROTECTED only applies per C549 to variables and procedure
pointers.


Re-reading F2008's "4.5.4.6 Default initialization for components" and R505 and
following, the
    procedure(), pointer :: ptr3 => p2  ! Valid
is invalid as "p2" does not have the target attribute.


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|ice-on-valid-code           |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45740

Reply via email to