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/55476] [4.8 Regression] Bogus warning "Pointer might outlive the pointer target"


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

--- Comment #2 from janus at gcc dot gnu.org 2012-11-26 22:05:23 UTC ---
The warning obviously gets triggered because the pointer has the 'host_assoc'
attribute (due to its use in the contained subroutine):

      warn = lvalue->symtree->n.sym->attr.dummy
         || lvalue->symtree->n.sym->attr.result
         || lvalue->symtree->n.sym->attr.function
         || lvalue->symtree->n.sym->attr.host_assoc
         || lvalue->symtree->n.sym->attr.use_assoc
         || lvalue->symtree->n.sym->attr.in_common;


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