From: Paolo Carlini Date: Thu, 13 Aug 2015 10:18:47 +0000 (+0000) Subject: re PR c++/62164 (5.0: ICE: error: Both section and comdat group is set) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1841dfbf078a975f3ccab564df192e8af1822949;p=gcc.git re PR c++/62164 (5.0: ICE: error: Both section and comdat group is set) 2015-08-13 Paolo Carlini PR c++/62164 * g++.dg/torture/pr62164.C: New. From-SVN: r226855 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c3a9ff104ee..ed5f2e52834 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-08-13 Paolo Carlini + + PR c++/62164 + * g++.dg/torture/pr62164.C: New. + 2015-08-13 Richard Biener PR tree-optimization/67191 diff --git a/gcc/testsuite/g++.dg/torture/pr62164.C b/gcc/testsuite/g++.dg/torture/pr62164.C new file mode 100644 index 00000000000..3f9e5399df2 --- /dev/null +++ b/gcc/testsuite/g++.dg/torture/pr62164.C @@ -0,0 +1,14 @@ +// { dg-do compile } +// { dg-require-effective-target named_sections } + +class T { static void t(); }; + +class U +{ +public: + static void u() __attribute__ ((__section__ (".initcall.text"))); +}; + +inline void U::u() {} + +void T::t() { U::u(); }