[Bug fortran/89079] "Invalid compiler error: Segmentation fault" in module with "equivalence" statement

airplanemath at aol dot com gcc-bugzilla@gcc.gnu.org
Sun Jan 27 22:55:00 GMT 2019


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89079

--- Comment #4 from airplanemath <airplanemath at aol dot com> ---
The line that the cygwin-native compiler crashes on:
attributes = gfc_add_attributes_to_decl (com->head->attr, NULL_TREE);
is not present in the Mingw-w64 cross compiler.  
Side-by-side debugging sessions reveal control flow 
through the two versions of build_common_decl are almost 
identical up to that point, except the cygwin-native 
compiler executes a line like
TREE_PUBLIC (decl) = 1;
which is not present in the Mingw-w64 execution.  
I asked for clarification on why the attributes line was 
there on the cygwin list.


More information about the Gcc-bugs mailing list