Debian Codegraph @

gcc/testsuite/g++.dg/template/sizeof12.C

raw
1 // Contributed by Dodji Seketeli <[email protected]>
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
15 crash()
16 {
17 Bar<sizeof(m_foo)> bar;
18 }
19 };