re PR c++/62164 (5.0: ICE: error: Both section and comdat group is set)
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 13 Aug 2015 10:18:47 +0000 (10:18 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 13 Aug 2015 10:18:47 +0000 (10:18 +0000)
2015-08-13  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/62164
* g++.dg/torture/pr62164.C: New.

From-SVN: r226855

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

index c3a9ff104ee3130b115e4915362d13ad1caf818b..ed5f2e5283433dd58a2ed88f8449431f8714ece5 100644 (file)
@@ -1,3 +1,8 @@
+2015-08-13  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/62164
+       * g++.dg/torture/pr62164.C: New.
+
 2015-08-13  Richard Biener  <rguenther@suse.de>
 
        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 (file)
index 0000000..3f9e539
--- /dev/null
@@ -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(); }