c++/8160: Internal compiler error in build_modify_expr, at cp/typeck.c:5494

sdementen@hotmail.com sdementen@hotmail.com
Mon Oct 7 08:16:00 GMT 2002

>Number:         8160
>Category:       c++
>Synopsis:       Internal compiler error in build_modify_expr, at cp/typeck.c:5494
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-illegal-code
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 07 08:16:01 PDT 2002
>Originator:     Sébastien de Menten
>Release:        gcc version 3.2 (Mandrake Linux 9.0 3.2-1mdk)
Fresh Mandrake 9.0 installation (gcc-2.96 is also installed)
Compilation of the file leads to

error_build_modify_expr.cpp: In constructor `foo<D>::foo() [with int D = 1]':
error_build_modify_expr.cpp:15:   instantiated from here
error_build_modify_expr.cpp:11: Internal compiler error in build_modify_expr, at cp/typeck.c:5494
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:https://qa.mandrakesoft.com/> for instructions.
Compile the file with no special flags

g++ error_build_modify_expr.cpp
Remove the templateness of the file (in this case, the template is useless :-)).
Otherwise, this is not possible. The const array must be initialised in another way.
But the standard C++ does not define any way, I think...
Content-Type: text/x-c++src; name="error_build_modify_expr.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="error_build_modify_expr.cpp"


More information about the Gcc-bugs mailing list