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

            Bug ID: 120323
           Summary: ICE when mixing #include and import std
           Product: gcc
           Version: 15.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: alexander.lelyakin at googlemail dot com
  Target Milestone: ---

Following program:
-----
import std;
#include <sundials/sundials_nvector.h>

int main() {
    std::cout << "Hello World!\n";
    return 0;
}
-----
Produces internal compiler error. See attachment.

Almost the same program have no problems.
-----
#include <sundials/sundials_nvector.h>
import std;

int main() {
    std::cout << "Hello World!\n";
    return 0;
}
-----
  • [Bug c++/120323] New... alexander.lelyakin at googlemail dot com via Gcc-bugs

Reply via email to