https://sourceware.org/bugzilla/show_bug.cgi?id=32690

--- Comment #18 from Sam James <sam at gentoo dot org> ---
It asserts for me. It is probably some compiler flag default difference.

Try this:
```
/usr/bin/g++ -B/tmp/binutils/bin \
        -fPIC -O3 -march=x86-64-v4 -shared -o libxerces-c-3.2.so
-fstack-protector-strong -fstack-clash-protection \
        -Wl,-z,pack-relative-relocs -Wl,-z,notext -Wl,-z,relro -Wl,-z,now \
        SchemaInfo.cpp.ii \
        SchemaSymbols.cpp.ii \
        XMLUni.cpp.ii || exit 1

/usr/bin/g++ -B/tmp/binutils/bin \
        -O2 -march=x86-64-v4 -fstack-protector-strong -fstack-clash-protection
-fPIE \
        -Wl,-z,pack-relative-relocs -Wl,-z,notext -Wl,-z,relro -Wl,-z,now -o
/dev/null \
        PSVIWriter.cpp.ii \
        PSVIWriterHandlers.cpp.ii \
        libxerces-c-3.2.so || exit 1
```

With that, I get:
```
[...]
PSVIWriterHandlers.cpp.ii: In function ‘void PSVIWriterHandlerswarning()’:
PSVIWriterHandlers.cpp.ii:433:3: warning: ‘void operator delete [](void*)’
called on unallocated object ‘temp2’ [-Wfree-nonheap-object]
  433 |   delete[] &temp2;
      |   ^~~~~~~~~~~~~~~
PSVIWriterHandlers.cpp.ii:428:12: note: declared here
  428 |   char16_t temp2 = (x)();
      |            ^~~~~
/tmp/binutils/bin/ld: internal error /home/sam/git/binutils-gdb/ld/ldlang.c
6618
collect2: error: ld returned 1 exit status
+ exit 1
```

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to