<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </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 --- - C++11 library error on OS X 10.8.4"
   href="http://llvm.org/bugs/show_bug.cgi?id=16412">16412</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>C++11 library error on OS X 10.8.4
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>3.3
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>MacOS X
          </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>Static Analyzer
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>kremenek@apple.com
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>kmowery@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=10734" name="attach_10734" title="Exception from the c++ library on OS X 10.8 with XCode 4.6.3 installed">attachment 10734</a> <a href="attachment.cgi?id=10734&action=edit" title="Exception from the c++ library on OS X 10.8 with XCode 4.6.3 installed">[details]</a></span>
Exception from the c++ library on OS X 10.8 with XCode 4.6.3 installed

Compiling a C++11 test case with llvm-3.3 fails on OSX 10.8.4 with XCode 4.6.3
installed:

$ cat test.cpp
#include <map>
int main(void) {return 1;}

$ llvm-3.3-build/Release+Asserts/bin/clang -std=c++11 -stdlib=libc++ test.cpp
In file included from test.cpp:2:
In file included from /usr/lib/c++/v1/map:371:
In file included from /usr/lib/c++/v1/__tree:16:
In file included from /usr/lib/c++/v1/memory:590:
In file included from /usr/lib/c++/v1/typeinfo:61:
/usr/lib/c++/v1/exception:146:5: error: an attribute list cannot appear here
    _LIBCPP_NORETURN friend void rethrow_exception(exception_ptr);
    ^~~~~~~~~~~~~~~~
/usr/lib/c++/v1/__config:190:28: note: expanded from macro '_LIBCPP_NORETURN'
#  define _LIBCPP_NORETURN [[noreturn]]
                           ^~~~~~~~~~~~
1 error generated.
$ llvm-3.2-build/Release+Asserts/bin/clang -std=c++11 test.cpp
$
======================

Removing the "-std=c++11" solved the problem. I've attached the "exception"
file from my local machine.

I'm not sure if the file is valid C++11, so this bug might need to be filed
with Apple. However, it compiles properly with vanilla llvm-3.2.</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>