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

            Bug ID: 113708
           Summary: [modules] ICE in import_export_decl with non-trivially
                    initialized inline variable in header module
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ppalka at gcc dot gnu.org
  Target Milestone: ---

$ cat header.H
inline int f() { return 42; }
inline int a = f();

$ cat testcase.C
import "header.H";

int main() {
  a;
}

$ g++ -fmodules-ts header.H testcase.C
testcase.C:5:1: internal compiler error: in import_export_decl, at
cp/decl2.cc:3385
    5 | }
      | ^

Doesn't seem to be a regression.

Reply via email to