From: Paolo Carlini Date: Thu, 26 Nov 2015 10:37:33 +0000 (+0000) Subject: re PR c++/67313 (ICE: in vague_linkage_p, at cp/decl2.c:1878 with -fno-weak and varia... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a3be0c83f81705c86fb5f8548596e3187cbcb34a;p=gcc.git re PR c++/67313 (ICE: in vague_linkage_p, at cp/decl2.c:1878 with -fno-weak and variadic template) 2015-11-26 Paolo Carlini PR c++/67313 * g++.dg/cpp0x/no-weak1.C: New. From-SVN: r230934 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 6e55cc29ede..11521371373 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-11-26 Paolo Carlini + + PR c++/67313 + * g++.dg/cpp0x/no-weak1.C: New. + 2015-11-26 Jakub Jelinek PR tree-optimization/68128 diff --git a/gcc/testsuite/g++.dg/cpp0x/no-weak1.C b/gcc/testsuite/g++.dg/cpp0x/no-weak1.C new file mode 100644 index 00000000000..bb267aa22d8 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/no-weak1.C @@ -0,0 +1,13 @@ +// PR c++/67313 +// { dg-do compile { target c++11 } } +// { dg-options "-fno-weak" } + +template < class ... > +void f () +{ +} + +void foo () +{ + f (); +}