From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C7FA43858411; Fri, 24 Dec 2021 13:58:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C7FA43858411 From: "fxcoudert at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/99936] [modules] FAIL: g++.dg/modules/xtreme-header* on Darwin Date: Fri, 24 Dec 2021 13:58:39 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: testsuite-fail X-Bugzilla-Severity: normal X-Bugzilla-Who: fxcoudert at gcc dot gnu.org X-Bugzilla-Status: NEW 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: cc Message-ID: In-Reply-To: References: 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Dec 2021 13:58:39 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99936 Francois-Xavier Coudert changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fxcoudert at gcc dot gnu.o= rg --- Comment #4 from Francois-Xavier Coudert = --- Currently still fails on x86_64-apple-darwin21 (https://gcc.gnu.org/pipermail/gcc-testresults/2021-December/743901.html), = as well as the future aarch64-apple-darwin21. Looks like a front-end issue. $ g++ testsuite/g++.dg/modules/xtreme-header-5_a.H -std=3Dc++2a -fmodule-he= ader -S testsuite/g++.dg/modules/xtreme-header-5_a.H: internal compiler error: tree check: expected var_decl or function_decl or field_decl or type_decl or concept_decl or template_decl, have namespace_decl in get_merge_kind, at cp/module.cc:10074 * thread #1, queue =3D 'com.apple.main-thread', stop reason =3D breakpoint = 4.1 * frame #0: 0x000000010186bc24 cc1plus`internal_error(char const*, ...) [inlined] auto_diagnostic_group::auto_diagnostic_group(this=3D= ) at diagnostic.c:2018:14 frame #1: 0x000000010186bc24 cc1plus`internal_error(gmsgid=3D"tree chec= k: %s, have %s in %s, at %s:%d") frame #2: 0x000000010193d07c cc1plus`tree_check_failed(node=3D, file=3D, line=3D, function=3D) at tree.c:8702:18 frame #3: 0x000000010192064c cc1plus`template_info_decl_check(t=3D, f=3D, l=3D, fn=3D) at cp-tree.h:651:21 frame #4: 0x0000000100199f24 cc1plus`trees_out::get_merge_kind(this=3D, decl=3D0x0000000123= 9bb738, dep=3D) at cp-tree.h:639:3 frame #5: 0x00000001001b1338 cc1plus`trees_out::decl_value(this=3D0x000000016fdfeaf0, decl=3D0x000000012= 39bb738, dep=3D0x0000000000000000) at module.cc:7501:34 frame #6: 0x00000001001b31bc cc1plus`trees_out::decl_node(this=3D0x000000016fdfeaf0, decl=3D0x0000000123= 9bb738, ref=3D) at module.cc:8536:18 frame #7: 0x00000001001b3dcc cc1plus`trees_out::tree_node(this=3D0x000000016fdfeaf0, t=3D0x00000001239bb= 738) at module.cc:9092:32 frame #8: 0x00000001001b43d4 cc1plus`trees_out::chained_decls(this=3D0x000000016fdfeaf0, decls=3D0x00000001239bb738) at module.cc:4840:17 frame #9: 0x00000001001b4ffc cc1plus`trees_out::core_vals(this=3D0x000000016fdfeaf0, t=3D0x000000012392a= 160) at module.cc:6060:21 frame #10: 0x00000001001ba1b0 cc1plus`trees_out::tree_value(tree_node*) [inlined] trees_out::tree_node_vals(t=3D0x000000012392a160, this=3D0x000000016fdfeaf0) at module.cc:7062:13 frame #11: 0x00000001001ba1a4 cc1plus`trees_out::tree_value(this=3D0x000000016fdfeaf0, t=3D0x000000012392= a160) frame #12: 0x00000001001b3cd8 cc1plus`trees_out::tree_node(this=3D0x000000016fdfeaf0, t=3D) = at module.cc:9097:14 frame #13: 0x00000001001ba318 cc1plus`trees_out::write_function_def(this=3D0x000000016fdfeaf0, decl=3D0x0000000123995d00) at module.cc:11354:13 frame #14: 0x00000001001bd2d0 cc1plus`depset::hash::find_dependencies(this=3D0x0000000102310000, module=3D) at module.cc:13130:31 frame #15: 0x00000001001bd7cc cc1plus`module_state::write(this=3D0x00000001040445b0, to=3D0x000000016fdfe= e30, reader=3D) at module.cc:17617:27 frame #16: 0x00000001001bee2c cc1plus`finish_module_processing(reader=3D0x000000010380d200) at module.cc:19873:21 frame #17: 0x00000001001253a0 cc1plus`c_parse_final_cleanups() at decl2.c:5310:28 frame #18: 0x000000010130669c cc1plus`::compile_file() at toplev.c:452:= 25 frame #19: 0x00000001019433ac cc1plus`toplev::main(this=3D0x000000016fd= ff1f8, argc=3D, argv=3D) at toplev.c:2156:24 frame #20: 0x00000001019442dc cc1plus`main(argc=3D21, argv=3D0x000000016fdff368) at main.c:39:23 frame #21: 0x00000001030510f4 dyld`start + 520 The tree that triggers the check is: > external in_system_header VOID /private/tmp/irun/include/c++/12.0.0/chrono:2097:34 align:1 warn_if_not_align:0 context abstract_origin module 0:./testsuite/g++.dg/modules/xtreme-header-5_a.H purview chain >=