This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/51582] New: ICE when using a class with a matrix of complex numbers in C++0x mode
- From: "mjdcc at clix dot pt" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 16 Dec 2011 16:31:53 +0000
- Subject: [Bug c++/51582] New: ICE when using a class with a matrix of complex numbers in C++0x mode
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51582
Bug #: 51582
Summary: ICE when using a class with a matrix of complex
numbers in C++0x mode
Classification: Unclassified
Product: gcc
Version: 4.6.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: mjdcc@clix.pt
Created attachment 26112
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26112
Preprocessed source
Compiling the following code:
#include <complex>
struct Mat {
std::complex<double> data[3][3];
};
int main() {
Mat m;
}
with -std=c++0x fails, giving the following error message:
mat.cpp: In function âint main()â:
mat.cpp:17:6: in constexpr expansion of âm.Mat::Mat()â
mat.cpp:17:6: internal compiler error: in build_special_member_call, at
cp/call.c:6615
However, the code compiles successfully, when using a vector instead of
a matrix, or by removing "Mat m;".