1// Contributed by Dodji Seketeli <dodji@redhat.com> 2// Origin PR c++/41863 3 4template<int X> 5struct Bar 6{ 7}; 8 9template<typename T> 10class Foo 11{ 12 T m_foo; 13 14 void 15 crash() 16 { 17 Bar<sizeof(m_foo)> bar; 18 } 19}; 20