Actions

icon Post
text/html Subscribe
text/html Unsubscribe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

g++ buglet


  • To: <arm-gcc@xxxxxxxxxxxxxxxx>
  • Subject: g++ buglet
  • From: "Vincent Korstanje" <Vincent.Korstanje@xxxxxxx>
  • Date: Thu, 15 Apr 2004 11:49:28 +0100

Dear CodeSourcery

Here a small g++ buglet, the following leads to an internal error 
in g++

   int Compound_Literals_0()
   {
      static int y[] = (int []) {1, 2, 3};
      static int z[] = (int [3]) {1};   
      return y[0]+z[0]; 
   }
my commandline was 
  ...\arm-2003-q4\win32_pentium\bin\arm-none-elf-c++.exe" -S -c test.cpp
-o testgnu.s
  
  test.cpp: In function `int Compound_Literals_0()':
  test.cpp:3: internal compiler error: tree check: expected tree_list,
have constructor in 
              reshape_init, at cp/decl.c:4354
   Please submit a full bug report,
   with preprocessed source if appropriate.
   Send email to arm-gcc@xxxxxxxxxxxxxxxx for instructions.

This is _not_ important to us, but I was looking at our (armcc) GNU 
language extension support and tried to tun this example through g++
to see what the result should be...and it fell over, so I though I might

aswell report it 

With Regards 
Vincent