[Bug fortran/71967] Protected and private specified at the same time and the symbol is accessible
marxin at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jul 22 11:16:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71967
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |accepts-invalid
Status|UNCONFIRMED |NEW
Last reconfirmed| |2016-07-22
CC| |marxin at gcc dot gnu.org
Target Milestone|--- |4.9.4
Ever confirmed|0 |1
--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, all GCC releases are affected (I've got 4.5+).
ICC compiler rejects the snippet:
/home/marxin/Programming/testcases/pr71967.f90(2): error #6406: Conflicting
attributes or multiple declaration of name. [K]
protected :: k
--------------^
/home/marxin/Programming/testcases/pr71967.f90(8): error #7013: This module
file was not generated by any release of this compiler. [M]
use m
-----^
compilation aborted for /home/marxin/Programming/testcases/pr71967.f90 (code 1)
More information about the Gcc-bugs
mailing list