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

            Bug ID: 87229
           Summary: ICE: tree code 'call_expr' is not supported in LTO
                    streams
           Product: gcc
           Version: 8.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: v at vsamko dot com
  Target Milestone: ---

This works fine with gcc 7 and ealier. Gcc 8 and trunk have this problem.
Compiling with "-flto"
===
struct Main { Main(char* x); };

Main::Main(char* x) {
    char cfg[__builtin_strlen(x)];
}
===

Result: 
===
during IPA pass: fnsummary

<source>: In member function 'Main::Main(char*)':

<source>:5:1: internal compiler error: tree code 'call_expr' is not supported
in LTO streams

 }

 ^

Please submit a full bug report,

with preprocessed source if appropriate.

See <https://gcc.gnu.org/bugs/> for instructions.

Compiler returned: 1
===

Reply via email to