This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/27324] Initialized module equivalence member causes assembler error
- From: "paul dot thomas at jet dot uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Apr 2006 10:44:31 -0000
- Subject: [Bug fortran/27324] Initialized module equivalence member causes assembler error
- References: <bug-27324-12580@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from paul dot thomas at jet dot uk 2006-04-27 10:44 -------
This one is marvelous - it's one of Sherlock Holme's "three pipers".
If the initialization is removed, all works correctly. If the module is
compiled separately and the object file linked with the main program, it works
correctly, as it stands.....
The root of the problem is in build_common_decl, where the backend_decl for the
equivalence union seems to get lost for some reason. In consequence, two decls
get made, which possess ASSEMBLER_DECL_NAMEs. For some reason that I do not yet
see, it matters if they are initilized or not. This latter is slightly
academic, in that the solution will be to get the existing backend_decl to
subsequent calls.
Paul
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27324