From 7e252d9b9b273e95b77ffdf6650a2fc65df51b17 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Wed, 25 Oct 2017 09:55:21 +0000 Subject: [PATCH] re PR c++/71820 (ICE on valid C++ code: in arg_assoc_type, at cp/name-lookup.c:5583) 2017-10-25 Paolo Carlini PR c++/71820 * g++.dg/ext/typeof12.C: New. From-SVN: r254072 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/ext/typeof12.C | 11 +++++++++++ 2 files changed, 16 insertions(+) create mode 100644 gcc/testsuite/g++.dg/ext/typeof12.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index cc453648b17..63f9de27945 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-10-25 Paolo Carlini + + PR c++/71820 + * g++.dg/ext/typeof12.C: New. + 2017-10-25 Tom de Vries * 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 index 00000000000..4ba75732db1 --- /dev/null +++ b/gcc/testsuite/g++.dg/ext/typeof12.C @@ -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; +} -- 2.30.2