From 1841dfbf078a975f3ccab564df192e8af1822949 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Thu, 13 Aug 2015 10:18:47 +0000 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/torture/pr62164.C | 14 ++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 gcc/testsuite/g++.dg/torture/pr62164.C 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(); } -- 2.30.2