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++/46873] New: [C++0x] ICE: in build_data_member_initialization, at cp/semantics.c:5489


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

           Summary: [C++0x] ICE: in build_data_member_initialization, at
                    cp/semantics.c:5489
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: zsojka@seznam.cz


---------- testcase.C ----------
struct S
{
  int i:1;
};

struct T
{
  const S s;
  constexpr T (S a = S ()) : s (a) { }
};

T t;
--------------------------------

I don't know if the code is valid, but the original code was (unless there is
invalid code in system headers).

Compiler output:
$ gcc -std=c++0x testcase.C 
gcc -std=c++0x testcase.C 
testcase.C: In constructor 'constexpr T::T(S)':
testcase.C:9:38: internal compiler error: in build_data_member_initialization,
at cp/semantics.c:5489
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Tested revisions:
r167621 - crash


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