diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/g++.dg/template/crash37.C')
-rw-r--r-- | gcc-4.9/gcc/testsuite/g++.dg/template/crash37.C | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/g++.dg/template/crash37.C b/gcc-4.9/gcc/testsuite/g++.dg/template/crash37.C new file mode 100644 index 000000000..d5167c8d2 --- /dev/null +++ b/gcc-4.9/gcc/testsuite/g++.dg/template/crash37.C @@ -0,0 +1,26 @@ +// PR c++/21352 + +struct coperator_stack +{ + template<class type> + void push3() + { + } +}; + +struct helper {}; + +template<class F> +void bla(F f) +{ +} + +template <typename ScannerT> +struct definition +{ + definition() + { + bla(coperator_stack::push3<helper>); // { dg-error "pointer to member" } + } +}; + |