<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - gcc attribute abi_tag not working correctly?"
   href="https://bugs.llvm.org/show_bug.cgi?id=32875">32875</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>gcc attribute abi_tag not working correctly?
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Frontend
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>jorgensen@kcg.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>It seems the gcc abi::cxx11 tag compatibility isn't working right, at least not
with the gcc 6.3.0, don't know if that's expected or not. If you compile this:

#include <string>
#include <iostream>

int main()
{
   std::string msg = "hello world";
   std::ios_base::failure f(msg);
   return 0;
}

your compile goes like this:

#include <string>
#include <iostream>

int main()
{
   std::string msg = "hello world";
   std::ios_base::failure f(msg);
   return 0;
}

Here's clang(&gcc) info:

clang++ -v
clang version 5.0.0 (trunk 301891)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/jorgensen/bin/clangbuild
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8.5
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5.4.1
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6.3.0
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6.3.0
Candidate multilib: .;@m64
Selected multilib: .;@m64

I just built from trunk before filing this issue. 

FWIW if I look at the symbols in the std++ lib I see:

nm --dynamic /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | c++filt | grep
'std::ios_base::failure'
000000000009fe00 T std::ios_base::failure::what() const
00000000000c1fb0 T std::ios_base::failure[abi:cxx11]::what() const
00000000000c27a0 T std::ios_base::failure[abi:cxx11]::cxx11(char const*,
std::error_code const&)
00000000000c20a0 T
std::ios_base::failure[abi:cxx11]::cxx11(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)
00000000000c2400 T
std::ios_base::failure[abi:cxx11]::cxx11(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&, std::error_code const&)
00000000000c27a0 T std::ios_base::failure[abi:cxx11]::cxx11(char const*,
std::error_code const&)
00000000000c20a0 T
std::ios_base::failure[abi:cxx11]::cxx11(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)
00000000000c2400 T
std::ios_base::failure[abi:cxx11]::cxx11(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&, std::error_code const&)
00000000000c1f90 T std::ios_base::failure[abi:cxx11]::~cxx11()
00000000000c1f70 T std::ios_base::failure[abi:cxx11]::~cxx11()
00000000000c1f70 T std::ios_base::failure[abi:cxx11]::~cxx11()
000000000009fec0 T std::ios_base::failure::failure(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)
000000000009fec0 T std::ios_base::failure::failure(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)
000000000009fea0 T std::ios_base::failure::~failure()
000000000009fe10 T std::ios_base::failure::~failure()
000000000009fe10 T std::ios_base::failure::~failure()
000000000037c388 V typeinfo for std::ios_base::failure[abi:cxx11]
000000000037a700 V typeinfo for std::ios_base::failure
0000000000140f30 V typeinfo name for std::ios_base::failure[abi:cxx11]
000000000013d490 V typeinfo name for std::ios_base::failure
000000000037c408 V vtable for std::ios_base::failure[abi:cxx11]
000000000037a718 V vtable for std::ios_base::failure</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>