Skip to content

Instantly share code, notes, and snippets.

@msullivan
Created April 13, 2016 20:02
Show Gist options
  • Save msullivan/4d4523b0f3a25119fb1cdbe140f66751 to your computer and use it in GitHub Desktop.
Save msullivan/4d4523b0f3a25119fb1cdbe140f66751 to your computer and use it in GitHub Desktop.
clang parser segfault - I got it to crash on 3.6 and 3.7 on my machine
// clang++ --std=c++11 clang-crash.cpp
template<typename F>
auto foo(F f) -> decltype(f()) { }
void bar() {
foo([&]() { return *bogus; });
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment