https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59997
--- Comment #5 from drikosev at otenet dot gr --- On Apr 11, 2015, at 3:30 PM, dominiq at lps dot ens.fr <gcc-bugzi...@gcc.gnu.org> wrote: > For the test case you should have a look at > https://gcc.gnu.org/wiki/HowToPrepareATestcase, in particular to the section { > dg-do <action> }: > > ! { dg-do compile } > > is equivalent to compiling the code with -S, so there is no need for the line > > +! { dg-options "-c” } > Thanks for the data. > Now when fixing an ICE on valid code, one has to check that the ICE (not good) > is not replaced with wrong code (evil). Fortunately the test > gfortran.dg/c_loc_test_20.f90 yields an ICE without the patch, but compiles > and > runs with it. > > I am planning to answer your post on fort...@gcc.gnu.org later today. > I hadn’t seen that a test case was already available in trunk but I’ve run: make check-fortran No Test Case Failed and further I had compared a working example with gcc5. The only suspicious thing is that the C function had to be underscored. In example, I had to create a C function named “cfun_” to run the example with both gcc4.8 & gcc5 at: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59997 Perhaps, this is ok or solved with an additional argument in the command line but I’d like to mention it here. Also, I’ve sent to g...@gcc.gnu.org a request for a copyright assignment form but I guess the process cannot be finalized the next one or two weeks. Regards, Ev. Drikos