This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/44265] Link error with reference to parameter array in specification expression
- From: "pault at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 09 Dec 2016 12:30:18 +0000
- Subject: [Bug fortran/44265] Link error with reference to parameter array in specification expression
- Auto-submitted: auto-generated
- References: <bug-44265-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44265
--- Comment #19 from Paul Thomas <pault at gcc dot gnu.org> ---
Created attachment 40286
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40286&action=edit
Failing testcases with -flto under Darwin
The PR is fixed under Linux but gives a link error under Darwin with -flto.
From Dominique's message to the list on 7th December:
The tests gfortran.dg/char_result_16.f90 and gfortran.dg/char_result_17.f90
fail with
lto1: error: two or more sections for
.gnu.lto___get_PROC_names.3e3ee55b08747e7c
lto1: internal compiler error: cannot read LTO decls from
/var/folders/8q/sh_swgz96r7f5vnn08f7fxr00000gn/T//ccEJosbA.o
This may be darwin specific as the linker is more picky than the linux one.
As soon as the cause is identified, the two attached testcases can be added to
the testsuite.
Cheers
Paul