Created
April 13, 2016 20:02
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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