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

            Bug ID: 68195
           Summary: gcc//ld produces invalid ABI results (cxx11 problem?)
           Product: gcc
           Version: 5.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: matthias at goldhoorn dot eu
  Target Milestone: ---

I already asked on the ML but don't get a reply. I assume my problem is a GCC
bug therefore...

I have created a really simple test-setup which causes a crash of my
component before the execution of main().
The crash happens during dynamic lib loading time.

I have a Library A compiled without -std=c++11  and a executable B with
-std=c++11.
From my understanding the newly introduced ABI compatibility should
prevent the linking if some ABI inconsistencies exist.
I using a fresh ubuntu15.10 in a VirtualBox.
The only thing that the lib does is include a boost header.

The minimal example which failed can be found here:

https://github.com/goldhoorn/sandbox/tree/gcc5.2-issue

The produced binary cannot be started if -O2 is given or the libs are a mixture
between c++11 and regular ones. The clang compiler works normally. GCC versions
before 5.2 work too.

Additional Information:
question on stackoverflow:
http://stackoverflow.com/questions/33475069/gcc5-2-abi-change-compatibility-guaranteed?noredirect=1#comment54740240_33475069

Reply via email to