OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
PR c++/27689
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
ttp18.C
diff --git a/gcc/testsuite/g++.dg/template/ttp18.C
b/gcc/testsuite/g++.dg/template/ttp18.C
new file mode 100644
(file)
index 0000000..
095c07f
--- /dev/null
+++ b/
gcc/testsuite/g++.dg/template/ttp18.C
@@ -0,0
+1,10
@@
+template <template <typename> class T>
+void f(T<int>) {}
+
+template <typename T>
+union U {};
+
+void g() {
+ f(U<int>());
+}
+