<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - codegen/nv50_ir.h:585:9: error: no member named 'tr1' in namespace 'std'"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=88766#c5">Comment # 5</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - codegen/nv50_ir.h:585:9: error: no member named 'tr1' in namespace 'std'"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=88766">bug 88766</a>
              from <span class="vcard"><a class="email" href="mailto:currojerez@riseup.net" title="Francisco Jerez <currojerez@riseup.net>"> <span class="fn">Francisco Jerez</span></a>
</span></b>
        <pre>(In reply to Ilia Mirkin from <a href="show_bug.cgi?id=88766#c4">comment #4</a>)
<span class="quote">> (In reply to Vinson Lee from <a href="show_bug.cgi?id=88766#c3">comment #3</a>)
> > Created <span class=""><a href="attachment.cgi?id=112757" name="attach_112757" title="Remove tr1 namespace.">attachment 112757</a> <a href="attachment.cgi?id=112757&action=edit" title="Remove tr1 namespace.">[details]</a></span> <a href='page.cgi?id=splinter.html&bug=88766&attachment=112757'>[review]</a> [review] [review]
> > Remove tr1 namespace.
> </span >
Hi Ilia,

<span class="quote">> That would require C++11 support, which I feel a lot worse about requiring
> than having nouveau not compile with clang. I'm surprised that clang chose
> not to ship tr1 headers... oh well.
> </span >
Actually I suspect your platform support would increase by relying on
the C++11 standard library rather than an on a non-standard extension.
Most likely this bug is not caused by the Clang compiler itself, but by
the standard library implementation.  Apparently FreeBSD ships with
LLVM's libc++ as default implementation these days, which implements the
C++11 standard library and doesn't attempt to support the TR1 namespace,
which is a C++03-specific extension.

<span class="quote">> If someone maps out the various version support for all this, perhaps we can
> make a decision. Or some other approach is the standard way to deal with
> this?</span >

I'd suggest we apply Vinson's patch and then build the codegen back-end
with -std=c++0x (available on GCC 4.3 and later), otherwise GNU's
libstdc++ will emit an error if you include any of the C++11 headers
while building in C++98/03 mode.  -std=c++11 would work too but it's
only supported since GCC 4.7.  Any reasonably recent Clang version (at
least 2.9) should support both switches.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>