[Bug fortran/86679] invalid code involving TARGET attribute is not rejected

2018-07-27 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86679 Dominique d'Humieres changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug fortran/86679] invalid code involving TARGET attribute is not rejected

2018-07-26 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86679 --- Comment #3 from Harald Anlauf --- I don't think that the 'i' is a problem. Regarding the subroutine, I think F2018-DIS C843 applies: C843 (R826) A nonpointer object with the INTENT (IN) attribute shall not appear in a variable definition

[Bug fortran/86679] invalid code involving TARGET attribute is not rejected

2018-07-26 Thread janus at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86679 --- Comment #2 from janus at gcc dot gnu.org --- (In reply to janus from comment #0) > 1) We are casting a pointer to a variable ('i') that is not declared as > TARGET. gfortran should probably check that in the subroutine call the > TARGET

[Bug fortran/86679] invalid code involving TARGET attribute is not rejected

2018-07-26 Thread janus at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86679 --- Comment #1 from janus at gcc dot gnu.org --- (In reply to janus from comment #0) > I assume for now it is invalid, but haven't checked the standard yet. There > are two issues that I can see: > > 1) We are casting a pointer to a variable