https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93028

            Bug ID: 93028
           Summary: internal compiler error: in write_type, at
                    cp/mangle.c:2073
           Product: gcc
           Version: 9.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: itchka at compuserve dot com
  Target Milestone: ---

Created attachment 47533
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47533&action=edit
Shell script containing compiler commands

Compiling part of a gecko-dev checkout results in the following error:-

Development/bluegriffon/BUILD/gecko-dev-042b84a/opt/dist/include/jsfriendapi.h:2005:1:
internal compiler error: in write_type, at cp/mangle.c:2073
 2005 | JS_GetArrayBufferData(JSObject* obj, bool* isSharedMemory, const
JS::AutoCheckCannotGC&);

The outout of g++ --version is:-
g++ (GCC) 9.2.1 20191123 (OpenMandriva)
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

The error is reproducible but does not alwaya occur with same file when
performing a normal build.

I have attached test case for a file that always fails.
If I create pre-processed source with g++ -E I am able to compile this without
error.

I have bisected gcc and the error occurs with the introduction of the following
commit:-
067e9a502dcaabcecda20a00b3f7c6160d8eea93

A pre-configured source code tree can be downloaded here:-
https://drive.google.com/file/d/1YMrAG9DGjAyr_Z-D3IjqNrJQQSAONcEQ/view?usp=sharing

A shell script is attached which will cd to the appropriate directory and build
the file which creates the error this should reside in the directory above the
untarred archive.

Reply via email to