summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other
diff options
context:
space:
mode:
authorgdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>2004-02-15 15:00:54 +0000
committergdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>2004-02-15 15:00:54 +0000
commit7dddebd70186c725a6c3c51c6f63413bb274b5df (patch)
tree8db135f09075a569195be7883fd395b12c855381 /gcc/testsuite/g++.dg/other
parentbf67dc6374e252912ff10bf03fee7fc921b3f0ef (diff)
downloadgcc-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.C7
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);
+}