Bug 57243

Summary: internal compiler error compiling multidimensioned array of constan objects
Product: [Retired] Red Hat Linux Reporter: Need Real Name <jeremyl>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED CURRENTRELEASE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-12-15 18:44:52 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Need Real Name 2001-12-07 19:21:19 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.6 [en] (X11; I; Linux 2.2.14-5.0 i686)

Description of problem:
g++ bug.cpp
bug.cpp: In function `int main ()':
bug.cpp:20: Internal compiler error in emit_move_insn, at expr.c:2577


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1.Compile the given code with g++
2.
3.
	

Actual Results:  [jeremyl@cvs-leeds ~/c]$ g++ bug.cpp 
bug.cpp: In function `int main ()':
bug.cpp:20: Internal compiler error in emit_move_insn, at expr.c:2577
Please submit a full bug report.
See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions.


Additional info:

class classA_c
{
public:
  classA_c() {j = 0;};
  classA_c(int i) {j = i;};
  ~classA_c() {};

private:
  int j;
};

int main()
{
  typedef const classA_c pFredA[3][3];

  const classA_c theObjectA = classA_c(1);

  pFredA thePFredA2 = {{theObjectA, theObjectA, theObjectA},
                       {theObjectA, theObjectA, theObjectA},
                       {theObjectA, theObjectA, theObjectA}};
}

Comment 1 Alan Cox 2002-12-15 18:44:52 UTC
Ok in g++ 3.2