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