diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/template/crash28.C')
-rw-r--r-- | gcc/testsuite/g++.dg/template/crash28.C | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/template/crash28.C b/gcc/testsuite/g++.dg/template/crash28.C new file mode 100644 index 000000000..e8b2bbb29 --- /dev/null +++ b/gcc/testsuite/g++.dg/template/crash28.C @@ -0,0 +1,13 @@ +// PR c++/18445 + +struct a +{ + int what(); +}; +void g(void*); +template<class T> +void f() +{ + a ex; + g(ex.what); // { dg-error "" } +} |