[Bug c++/38844] New: [4.3/4.4 Regression] deadlock with __attribute__((always_inline)) at -O1 and above

zsojka at seznam dot cz gcc-bugzilla@gcc.gnu.org
Wed Jan 14 18:11:00 GMT 2009


gcc seems to deadlock with the following code at -O1 and above:

=================================
struct A {
        inline __attribute__((always_inline)) A()
        {
                A();
                A();
        }
};

int main()
{
        A();
        return 0;
}
=================================

Command line:
g++ deadlock.cpp -o deadlock.o -O1


-- 
           Summary: [4.3/4.4 Regression] deadlock with
                    __attribute__((always_inline)) at -O1 and above
           Product: gcc
           Version: 4.3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: zsojka at seznam dot cz
  GCC host triplet: x86_64-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38844



More information about the Gcc-bugs mailing list