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