diff options
author | gdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-02-15 15:00:54 +0000 |
---|---|---|
committer | gdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-02-15 15:00:54 +0000 |
commit | 7dddebd70186c725a6c3c51c6f63413bb274b5df (patch) | |
tree | 8db135f09075a569195be7883fd395b12c855381 /gcc/testsuite/g++.dg/other | |
parent | bf67dc6374e252912ff10bf03fee7fc921b3f0ef (diff) | |
download | gcc-7dddebd70186c725a6c3c51c6f63413bb274b5df.tar.gz |
PR c++/14085
* error.c (dump_decl): Handle TEMPLATE_TYPE_PARM.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77852 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/g++.dg/other')
-rw-r--r-- | gcc/testsuite/g++.dg/other/nontype-1.C | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/other/nontype-1.C b/gcc/testsuite/g++.dg/other/nontype-1.C new file mode 100644 index 00000000000..5a1fcd97821 --- /dev/null +++ b/gcc/testsuite/g++.dg/other/nontype-1.C @@ -0,0 +1,7 @@ +template <class Op> +bool asfun(Op f, + Op::first_argument_type a, // { dg-error "not a type" } + Op::second_argument_type b) // { dg-error "not a type" } +{ // { dg-error "no type" } + return Op(a, b); +} |