https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62302

            Bug ID: 62302
           Summary: Change in the comdat used for constructors
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rafael.espindola at gmail dot com
                CC: hubicka at gcc dot gnu.org

It looks like an unintended consequence of r211434 wast that given

template <typename T> struct foo { foo(); };
template <typename T> foo<T>::foo() {}
template class foo<int>;

gcc now prints

.section    .text._ZN3fooIiEC2Ev,"axG",@progbits,_ZN3fooIiEC2Ev,comdat

before it did

.section    .text._ZN3fooIiEC2Ev,"axG",@progbits,_ZN3fooIiEC5Ev,comdat

Note the change in comdat.

Reply via email to