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
>Closed-Date:
>Last-Modified:
>Originator:     Sébastien de Menten
>Release:        gcc version 3.2 (Mandrake Linux 9.0 3.2-1mdk)
>Organization:
>Environment:
Fresh Mandrake 9.0 installation (gcc-2.96 is also installed)
>Description:
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.
>How-To-Repeat:
Compile the file with no special flags

g++ error_build_modify_expr.cpp
>Fix:
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...
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
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"

I2luY2x1ZGUgPGlvc3RyZWFtPgoKdGVtcGxhdGU8aW50IEQ+CmNsYXNzIGZvbyB7CnB1YmxpYzoK
ICBjb25zdCBpbnQgZFszXTsKICBmb28oKTsKfTsKCnRlbXBsYXRlPGludCBEPgpmb288RD46OmZv
bygpIDogZCgoY29uc3QgaW50W10pezEsMiwzfSkgewp9OwoKaW50IG1haW4oaW50IGFyZ2MsY2hh
ciAqKmFyZ3YpIHsKICBmb288MT4gYjsKfTsK



More information about the Gcc-bugs mailing list