From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5577D3858D35; Thu, 3 Aug 2023 19:29:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5577D3858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1691090957; bh=gmJE0D5Dg56Tylpdi0TD4CQCL3apfhqbFkSjY9QYaUQ=; h=From:To:Subject:Date:From; b=YMOJws8qIbglrwkj0EAYiudZODs4jPa0ftCMUe8HqdQcod9xWDD++AoR0klYba4rT jMXUV0z0/QxtT0FWWX1VAmAQm3iF+V/+SqYmisqqaVzoXXNzDAu+y+LgItfpePPYXd TOi4LAns6Xuq12UMe4Pr7d3X0bCbB+B+BS54tQv4= From: "johelegp at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/110894] New: [modules] Program terminates with signal SIGSEGV Date: Thu, 03 Aug 2023 19:29:17 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: johelegp at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_file_loc bug_status keywords bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D110894 Bug ID: 110894 Summary: [modules] Program terminates with signal SIGSEGV Product: gcc Version: 14.0 URL: https://cpp2.godbolt.org/z/7YrvenrzT Status: UNCONFIRMED Keywords: wrong-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: johelegp at gmail dot com CC: johelegp at gmail dot com Target Milestone: --- Please, see . It has the source files, and in the output, the compile commands along with the errors. ``` $ cat module.cpp=20 module; #include export module hello; export auto hello() -> std::string { return "Hello"; } $ cat main.cpp=20 #include import hello; auto main() -> int { std::cout << hello() << ", modules!\n"; } ``` ``` [1/6] /opt/compiler-explorer/clang-16.0.0/bin/clang-scan-deps -format=3Dp16= 89 -- /opt/compiler-explorer/gcc-snapshot/bin/g++ -O0 -std=3Dc++2b -pedantic-er= rors -Wall -Wextra -Wconversion -Werror=3Dunused-result -isystem /opt/compiler-explorer/gcc-snapshot/bin/../lib/gcc/x86_64-linux-gnu/14.0.0/= include -x c++ /app/module.cpp -c -o CMakeFiles/main.dir/module.cpp.o -MT CMakeFiles/main.dir/module.cpp.o.ddi -MD -MF CMakeFiles/main.dir/module.cpp.o.ddi.d > CMakeFiles/main.dir/module.cpp.o.d= di [2/6] /opt/compiler-explorer/clang-16.0.0/bin/clang-scan-deps -format=3Dp16= 89 -- /opt/compiler-explorer/gcc-snapshot/bin/g++ -O0 -std=3Dc++2b -pedantic-er= rors -Wall -Wextra -Wconversion -Werror=3Dunused-result -isystem /opt/compiler-explorer/gcc-snapshot/bin/../lib/gcc/x86_64-linux-gnu/14.0.0/= include -x c++ /app/main.cpp -c -o CMakeFiles/main.dir/main.cpp.o -MT CMakeFiles/main.dir/main.cpp.o.ddi -MD -MF CMakeFiles/main.dir/main.cpp.o.d= di.d > CMakeFiles/main.dir/main.cpp.o.ddi [3/6] /opt/compiler-explorer/cmake-v3.26.1/bin/cmake -E cmake_ninja_dyndep --tdi=3DCMakeFiles/main.dir/CXXDependInfo.json --lang=3DCXX --modmapfmt=3Dg= cc --dd=3DCMakeFiles/main.dir/CXX.dd @CMakeFiles/main.dir/CXX.dd.rsp [4/6] /opt/compiler-explorer/gcc-snapshot/bin/g++ -O0 -std=3Dc++2b -pedantic-errors -Wall -Wextra -Wconversion -Werror=3Dunused-result -MD -MT CMakeFiles/main.dir/module.cpp.o -MF CMakeFiles/main.dir/module.cpp.o.d -fmodules-ts -Mno-modules -fmodule-mapper=3DCMakeFiles/main.dir/module.cpp.o.modmap -x c++ -o CMakeFiles/main.dir/module.cpp.o -c /app/module.cpp [5/6] /opt/compiler-explorer/gcc-snapshot/bin/g++ -O0 -std=3Dc++2b -pedantic-errors -Wall -Wextra -Wconversion -Werror=3Dunused-result -MD -MT CMakeFiles/main.dir/main.cpp.o -MF CMakeFiles/main.dir/main.cpp.o.d -fmodules-ts -Mno-modules -fmodule-mapper=3DCMakeFiles/main.dir/main.cpp.o.= modmap -x c++ -o CMakeFiles/main.dir/main.cpp.o -c /app/main.cpp [6/6] : && /opt/compiler-explorer/gcc-snapshot/bin/g++ -O0 -std=3Dc++2b -pedantic-errors -Wall -Wextra -Wconversion -Werror=3Dunused-result -L/app -Wl,-rpath,/app -Wl,-rpath,/opt/compiler-explorer/gcc-snapshot/lib64 -Wl,-rpath,/opt/compiler-explorer/gcc-snapshot/lib32 CMakeFiles/main.dir/main.cpp.o CMakeFiles/main.dir/module.cpp.o -o main &= & : Program returned: 139 Program terminated with signal: SIGSEGV ```=