Created
April 7, 2017 15:29
-
-
Save hia3/6d1267ead31b935912d77ae88343edd7 to your computer and use it in GitHub Desktop.
hana asan crash
This file contains 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
#include <boost/hana/tuple.hpp> | |
template <typename T> | |
struct tt | |
{ | |
}; | |
int main() | |
{ | |
const tt<int> xn1; const tt<char> xn2; | |
boost::hana::tuple<tt<int>, tt<char> > tz(xn1, xn2); | |
// runtime error: constructor call on address 0x00256c51f6e2 with insufficient space for an object of type 'boost::hana::detail::elt<1, tt<char>, true>' | |
// note: pointer points here | |
// 00 00 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 59 10 64 90 f6 7f | |
// ^ | |
// SUMMARY: AddressSanitizer: undefined-behavior in main+0xab | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment