diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/template/lookup3.C')
-rw-r--r-- | gcc/testsuite/g++.dg/template/lookup3.C | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/template/lookup3.C b/gcc/testsuite/g++.dg/template/lookup3.C new file mode 100644 index 00000000000..c96a0b0b981 --- /dev/null +++ b/gcc/testsuite/g++.dg/template/lookup3.C @@ -0,0 +1,16 @@ +// PR c++/12397 + +struct foo { }; + +template <typename T> struct bar +{ + bar(){} + int i; + bar (const bar<T>& foo) : i (foo.i) {} +}; + +int main() +{ + bar<int> b1; + bar<int> b2(b1); +} |