diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/inherit/local3.C')
-rw-r--r-- | gcc/testsuite/g++.dg/inherit/local3.C | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/inherit/local3.C b/gcc/testsuite/g++.dg/inherit/local3.C new file mode 100644 index 000000000..b11646422 --- /dev/null +++ b/gcc/testsuite/g++.dg/inherit/local3.C @@ -0,0 +1,14 @@ +// PR c++/13744 (ice-on-valid-code) +// Origin: Thom Harp <thomharp@charter.net> + +// { dg-do compile } + +template<int> void foo() +{ + struct A + { + virtual void bar() { A a(*this); } + } a; +} + +template void foo<0>(); |