summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/debug/pr22514.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.dg/debug/pr22514.C')
-rw-r--r--gcc/testsuite/g++.dg/debug/pr22514.C13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/debug/pr22514.C b/gcc/testsuite/g++.dg/debug/pr22514.C
new file mode 100644
index 000000000..ed31cc7a1
--- /dev/null
+++ b/gcc/testsuite/g++.dg/debug/pr22514.C
@@ -0,0 +1,13 @@
+/* { dg-do compile } */
+namespace s
+{
+ template <int> struct _List_base
+ {
+ int _M_impl;
+ };
+ template<int i> struct list : _List_base<i>
+ {
+ using _List_base<i>::_M_impl;
+ } // { dg-error "after struct definition" }
+}
+s::list<1> OutputModuleListType;