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++/53349] New: Internal compiler error with constexpr and recursive data type.


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

             Bug #: 53349
           Summary: Internal compiler error with constexpr and recursive
                    data type.
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: pkeir@dcs.gla.ac.uk


Created attachment 27404
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27404
The file which causes the internal error.

Compiling the attached file will cause an internal compiler error in gcc 4.7.0
under 32-bit Ubuntu 12.04:

g++-4.7 -std=c++11 rec_constexpr.cpp

...
constfft.cpp:16:47: internal compiler error: in cxx_eval_indirect_ref, at
cp/semantics.c:7400

If the copy constructor of Foo is removed, it is clang 3.2 (trunk 156580) which
will then fail.


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