PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / template / sizeof12.C
blobe165d2aab789a40ff8e53987e78ffbe4aa37b2ea
1 // Contributed by Dodji Seketeli <dodji@redhat.com>
2 // Origin PR c++/41863
4 template<int X>
5 struct Bar
7 };
9 template<typename T>
10 class Foo
12   T m_foo;
14   void
15   crash()
16   {
17     Bar<sizeof(m_foo)> bar;
18   }