diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/template/crash32.C')
-rw-r--r-- | gcc/testsuite/g++.dg/template/crash32.C | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/template/crash32.C b/gcc/testsuite/g++.dg/template/crash32.C new file mode 100644 index 000000000..4c7af8a39 --- /dev/null +++ b/gcc/testsuite/g++.dg/template/crash32.C @@ -0,0 +1,9 @@ +// PR c++/19667 + +struct integral_constant { }; + +template<typename _Tp> +struct is_function : public integral_constant { }; + +template<> +struct is_function : public integral_constant { }; // { dg-error "" } |