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++/11063] New: ICE on parsing initialization list of const array member


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: ICE on parsing initialization list of const array member
           Product: gcc
           Version: 3.2.2
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: ElGringo@gmx.at
                CC: gcc-bugs@gcc.gnu.org

Member:       const int val[2];
Constructor:  Foo::Foo (...) : val((int[]) {...})
results in:
init.cpp: In constructor `Foo::Foo(int, int)':
init.cpp:12: Internal compiler error in build_modify_expr, at cp/typeck.c:5516

works fine with Constructor: Foo::Foo (...) : foo((const int[]) {...})

(i don't understand why i need the casting, but syntax error without...)



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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