[Bug c++/55355] New: internal compiler error: in tree_low_cst, at tree.c:6415

2012-11-16 Thread rcp at sentientmeat dot ca


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



 Bug #: 55355

   Summary: internal compiler error: in tree_low_cst, at

tree.c:6415

Classification: Unclassified

   Product: gcc

   Version: 4.6.3

Status: UNCONFIRMED

  Severity: normal

  Priority: P3

 Component: c++

AssignedTo: unassig...@gcc.gnu.org

ReportedBy: r...@sentientmeat.ca





Created attachment 28711

  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28711

Minimal C++ file to reproduce gcc 3.4.6 ICE in tree_low_cst, at tree.c:6415



The attached file produces the following error when compiled with gcc 3.4.6:



$ /usr/local/gcc-4.6.3/bin/g++ -O2 -save-temps -c test.cpp

test.cpp: In member function 'void C::funcC()':

test.cpp:34:1: internal compiler error: in tree_low_cst, at tree.c:6415

Please submit a full bug report,

with preprocessed source if appropriate.

See  for instructions.



gcc 3.4.6 is configured thusly:



$ /usr/local/gcc-4.6.3/bin/g++ -v

Using built-in specs.

COLLECT_GCC=/usr/local/gcc-4.6.3/bin/g++

COLLECT_LTO_WRAPPER=/usr/local/gcc-4.6.3/bin/../libexec/gcc/i686-pc-linux-gnu/4.6.3/lto-wrapper

Target: i686-pc-linux-gnu

Configured with: ../gcc-4.6.3/configure --prefix=/opt/soldev/gcc-4.6.3

--with-gnu-as --with-gnu-ld --disable-libgcj --enable-languages=c,c++

Thread model: posix

gcc version 4.6.3 (GCC)


[Bug c++/55355] internal compiler error: in tree_low_cst, at tree.c:6415

2012-11-16 Thread rcp at sentientmeat dot ca


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



--- Comment #1 from Richard Perrin  2012-11-16 
17:23:11 UTC ---

Oops:

s/3.4.6/4.6.3/ on all above.



All references to gcc 3.4.6 should actually be gcc 4.6.3.  I'm apparently

dyslexic or something today.


[Bug c++/55355] internal compiler error: in tree_low_cst, at tree.c:6415

2012-11-16 Thread rcp at sentientmeat dot ca


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



--- Comment #3 from Richard Perrin  2012-11-16 
17:50:30 UTC ---

(In reply to comment #2)

> I can't reproduce this on x86_64-linux, neither -m64 nor -m32. Tried 4.6.3,

> current 4_6-branch, 4_7-branch and mainline.



I have tried 4.7.1 and 4.7.2 on the same systems, built with the same

configuration, and can confirm that neither of these versions suffers from this

problem. (Other issues prevent us from adopting those versions.)


[Bug c++/55355] internal compiler error: in tree_low_cst, at tree.c:6415

2012-11-19 Thread rcp at sentientmeat dot ca


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



Richard Perrin  changed:



   What|Removed |Added



 Status|RESOLVED|UNCONFIRMED

 Resolution|WORKSFORME  |



--- Comment #5 from Richard Perrin  2012-11-19 
16:18:58 UTC ---

I really am relying on a fix in 4_6-branch (perhaps back-port of the fix that's

in 4.7?). Other issues prevent us from adopting gcc 4.7.


[Bug c++/55355] internal compiler error: in tree_low_cst, at tree.c:6415

2012-11-19 Thread rcp at sentientmeat dot ca


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



--- Comment #7 from Richard Perrin  2012-11-19 
17:24:14 UTC ---

So 4.6 branch is dead? Or no more i386 support?


[Bug c++/55355] internal compiler error: in tree_low_cst, at tree.c:6415

2012-11-20 Thread rcp at sentientmeat dot ca


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



--- Comment #9 from Richard Perrin  2012-11-20 
15:45:06 UTC ---

(In reply to comment #8)

> Note that, as I said already, I can't reproduce anywhere, not even in current

> 4_6-branch (on x86_64-linux -m32). Did you actually try it?



I have reproduced the ICE in an i386 build of gcc-4_6-branch at r193571.



I then switched to an x86_64-linux platform and built gcc from the same

codebase, and could not reproduce the ICE with the x86_64 gcc binary against

the test code.


[Bug c++/55355] internal compiler error: in tree_low_cst, at tree.c:6415

2012-11-22 Thread rcp at sentientmeat dot ca


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



Richard Perrin  changed:



   What|Removed |Added



 Status|RESOLVED|UNCONFIRMED

 Resolution|WORKSFORME  |



--- Comment #10 from Richard Perrin  2012-11-22 
14:52:43 UTC ---

I am re-opening given comment 9 which provides an additional and apparently

necessary reproduction ingredient, namely an i386 platform build. Let me know

if there's other info necessary, or if you still cannot reproduce.


[Bug c++/55355] internal compiler error: in tree_low_cst, at tree.c:6415

2012-11-23 Thread rcp at sentientmeat dot ca


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



--- Comment #14 from Richard Perrin  2012-11-23 
16:05:48 UTC ---

gcc 4.5.4 does not suffer from the problem compiling the attached repro code,

indicating this is a 4.6 regression.