<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 --- - noexcept(true) does not compile with default functions (ctor, dtor) of a templated class"
   href="http://llvm.org/bugs/show_bug.cgi?id=15597">15597</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>noexcept(true) does not compile with default functions (ctor, dtor) of a templated class
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </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>C++11
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>kutlak.roman@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, 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=10242" name="attach_10242" title="preprocessed source and associated run script">attachment 10242</a> <a href="attachment.cgi?id=10242&action=edit" title="preprocessed source and associated run script">[details]</a></span>
preprocessed source and associated run script

I have a simple templated class that does compile with `noexcept` but not with
`noexcept(true)`

Code: 
template<typename T>
struct Foo
{
  Foo() noexcept = default;
  ~Foo() noexcept(true) = default;
};

int main(int argc, char** argv)
{
  Foo<int> f;
  return 0;
}

The error I get from clang is:
Stack dump:
0.    Program arguments:
/Users/roman/Developer/llvm_build/Release+Asserts/bin/clang -cc1 -triple
x86_64-apple-macosx10.8.0 -emit-obj -mrelax-all -disable-free -main-file-name
noexcept.cpp -mrelocation-model pic -pic-level 2 -mdisable-fp-elim
-masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 134.9
-resource-dir
/Users/roman/Developer/llvm_build/Release+Asserts/bin/../lib/clang/3.3 -I
/Developer/libcxx_build/include/ -I /Developer/boost_build/include -I
/opt/local/include -stdlib=libc++ -Wall -Wunknown-pragmas -pedantic -std=c++11
-fdeprecated-macro -fdebug-compilation-dir /Users/roman/tmp -ferror-limit 19
-fmessage-length 347 -stack-protector 1 -mstackrealign -fblocks
-fobjc-runtime=macosx-10.8.0 -fobjc-dispatch-method=mixed
-fobjc-default-synthesize-properties -fencode-extended-block-signature
-fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics
-backend-option -vectorize-loops -o
/var/folders/cp/mnxl6mfx73l5yvfxqs1nhxm00000gp/T/noexcept-FMmIH9.o -x c++
noexcept.cpp 
1.    noexcept.cpp:10:13: current parser token ';'
2.    noexcept.cpp:9:1: parsing function body 'main'
3.    noexcept.cpp:9:1: in compound statement ('{}')
clang: error: unable to execute command: Illegal instruction: 4
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.3 (trunk 177870:177998) (llvm/trunk 177998)
Target: x86_64-apple-darwin12.3.0
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg: 
********************

The diagnostic files are attached.

Roman Kutlak</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>