diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/crash19.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/crash19.C | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/crash19.C b/gcc/testsuite/g++.old-deja/g++.pt/crash19.C new file mode 100644 index 000000000..09e57d1d3 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/crash19.C @@ -0,0 +1,19 @@ +// { dg-do assemble } + +template <int I> +void f() +{ + class C { public: int c; }; + + struct S { + void g() { + C e; + e.c = 3; + } + }; + + S s; + s.g(); +} + +template void f<7>(); |