https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64244
--- Comment #14 from Ondřej Čertík <ondrej.certik at gmail dot com> --- On Tue, Dec 16, 2014 at 4:24 PM, Ondřej Čertík <ondrej.cer...@gmail.com> wrote: > On Tue, Dec 16, 2014 at 1:46 PM, janus at gcc dot gnu.org > <gcc-bugzi...@gcc.gnu.org> wrote: >> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64244 >> >> --- Comment #12 from janus at gcc dot gnu.org --- >> (In reply to Ondřej Čertík from comment #11) >>> So my system (RHEL6) libstdc++ library might be incompatible with the >>> trunk, but I don't see why gcc couldn't compile. Any ideas how to fix >>> this? >> >> Unfortunately I have no idea. It might possibly help to use >> --disable-bootstrap >> or --disable-multilib when configuring (just guessing here). >> >> In general, if you have trouble building GCC, you might get help from >> gcc-h...@gcc.gnu.org (or, for Fortran-related things: fort...@gcc.gnu.org). >> >> Note that some people offer nightly builds of the GCC trunk, see >> https://gcc.gnu.org/wiki/GFortranBinaries. > > Thanks, I might ask for help there later. In the meantime I just > backported your patch to 4.9.2 and recompiled. I tested on our code > base, but I realized that I also need your and Andre's patch from > here: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60255, so I am > recompiling again. I tested it and it seems to be working! The code compiled with non_overridable on. There are run-time segfaults and array bounds mismatches in our code, that don't happen with ifort, so I will be slowly isolating those and reporting them. They seem unrelated to the non_overridable issue, as they also happen when I remove non_overridable. Ondrej