http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48281
Summary: internal compiler error: in record_reference, at cgraphbuild.c:60 Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: swest...@gmail.com The code that triggered this bug is almost certainly in error, but as its caused an internal compiler error, it seemed worth reporting. That said, I don't really know *what* caused the bug, except to say that it happened when I declared my four matrix variables in the attached code (M a ... M d) to be static. The code is one unit test from an ongoing project, and I've provided the plain .cpp code (for reference) and a pre-processed file so you have a chance to reproduce the bug. In case it matters, here are my system specs: $ g++ --version g++ (Debian 4.6.0~rc1-2) 4.6.0 20110320 (prerelease) Copyright (C) 2011 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ uname -a Linux timelord 2.6.36-zen2-sti-02 #4 ZEN SMP PREEMPT Fri Jan 7 13:21:12 EST 2011 x86_64 GNU/Linux