This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/51582] New: ICE when using a class with a matrix of complex numbers in C++0x mode


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;".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]