When two matrices of the type double, sized [724][724] or more are declared, as
private variables of a class, the program crashes as soon as this class
constructor is called. 

724 is the magic number; 723 does not trigger the bug. The type has to be
double also, no other built-in does the job.

The exact version I'm using is Ubuntu 4.3.3-5ubuntu4.

Here's a little source file that triggers the bug:

class foo
{
  double a[724][724], b[724][724];

public:

    foo ()
  {
  }
};

int
main ()
{
  foo bar;
}


-- 
           Summary: SEGFAULT when declaring two 724 x 724 matrices of
                    doubles in class
           Product: gcc
           Version: 4.3.3
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: maltusan at gmail dot com
 GCC build triplet: i486-linux-gnu
  GCC host triplet: i486-linux-gnu
GCC target triplet: i486-linux-gnu


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

Reply via email to