Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/cpp1z/class-deduction9.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
131 | 1 // { dg-do compile { target c++17 } } |
111 | 2 |
3 namespace N { | |
4 template <class T> | |
5 struct A | |
6 { | |
7 int i; | |
8 A(...); | |
9 }; | |
10 } | |
11 | |
12 template <class T> | |
13 N::A(T) -> N::A<T>; // { dg-error "should have been declared inside .N" } | |
14 | |
15 namespace N { | |
16 template <class T> | |
17 A(T) -> A<T>; | |
18 } |