re PR c++/71820 (ICE on valid C++ code: in arg_assoc_type, at cp/name-lookup.c:5583)
authorPaolo Carlini <paolo.carlini@oracle.com>
Wed, 25 Oct 2017 09:55:21 +0000 (09:55 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 25 Oct 2017 09:55:21 +0000 (09:55 +0000)
2017-10-25  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/71820
* g++.dg/ext/typeof12.C: New.

From-SVN: r254072

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/typeof12.C [new file with mode: 0644]

index cc453648b1750f816a49e617b9dbb304aba8db1e..63f9de27945fd9214e994e23c8b7b9105192113e 100644 (file)
@@ -1,3 +1,8 @@
+2017-10-25  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/71820
+       * g++.dg/ext/typeof12.C: New.
+
 2017-10-25  Tom de Vries  <tom@codesourcery.com>
 
        * gcc.dg/tree-ssa/loop-1.c: Add xfail for nvptx in scan-assembler-times
diff --git a/gcc/testsuite/g++.dg/ext/typeof12.C b/gcc/testsuite/g++.dg/ext/typeof12.C
new file mode 100644 (file)
index 0000000..4ba7573
--- /dev/null
@@ -0,0 +1,11 @@
+// PR c++/71820
+
+void f (void (*) (int, int)) {}
+
+template < typename T > void g (T x, __typeof__ x) {}  // { dg-message "sorry, unimplemented: mangling" }
+
+int main ()
+{
+  f (g < int >); 
+  return 0; 
+}