Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace std {
- int a; // This definition helps the segfault manifest; it's ultimately not important
- template<typename x, typename y, typename z> class bs; // This line is important; changing it in any way will fix the segfault.
- }
- namespace std {
- template<typename x, typename y, typename z> class bs {
- typedef y a; // This definition helps the segfault manifest; it's ultimately not important, but it is important that you typedef a template parameter.
- const does_not_exist* b(int, int, int); // This is where our segfault manifests; the modifier is important but which one does not matter. The key is that the type does not exist.
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement