diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/crash39.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/crash39.C | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/crash39.C b/gcc/testsuite/g++.old-deja/g++.pt/crash39.C new file mode 100644 index 000000000..a8f70aa30 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/crash39.C @@ -0,0 +1,19 @@ +// { dg-do assemble } +// Origin: Ian Nixon <ian@tharas.com> + +class Action { +public: + virtual void action () = 0; +}; + +class Var { +public: + + template<class Base> void Add() { + struct tmp : public Action { + void action () {} + }; + tmp *tp = new tmp; + } + +}; |